dcast.count2: Counts up occurrences from a melted table

dcast.count2R Documentation

Counts up occurrences from a melted table

Description

Counting up occurrences in a table while taking factor levels into account Also allows for weighting the counts using flexible argument parsing Can either provide a weight as a name of a column, as values themselves, or don't provide at all, and the function looks for a column named "wt" for its values

Usage

dcast.count2(
  tbl,
  lh,
  rh = NULL,
  countcol = "count",
  wt = 1,
  fun.aggregate = "sum",
  value.var = "dummy",
  ...
)

Value

A data frame or data.table


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.