dcast2: dcast.data.table but allows vector arguments for value.var,

dcast2R Documentation

dcast.data.table but allows vector arguments for value.var,

Description

if value.var is a vector then will combine the right hand side column names with each element of value.var in a merged cast table

Usage

dcast2(
  data,
  formula,
  ...,
  value.var = NULL,
  fun.aggregate = function(x) if (length(x) <= 1) x[1] else paste(x, collapse = ","),
  sep = "_"
)

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.