WeightedTable: 'WeightedTable'

WeightedTableR Documentation

WeightedTable

Description

Generalisation of the table function in base to handle weights

Usage

WeightedTable(
  ...,
  weights = NULL,
  exclude = if (useNA == "no") c(NA, NaN),
  useNA = c("no", "ifany", "always"),
  dnn = list.names(...),
  deparse.level = 1
)

Arguments

...

one or more objects which can be interpretated as factors, or a list or dataframe whose components can be so interpreted

weights

numeric vector of sampling weights

exclude

levels to remove for all factors in ...

useNA

whether to include NA values in the table

dnn

the names to given to the dimensions in the result

deparse.level

controls how the default dnn is constructed.


Displayr/flipStatistics documentation built on April 12, 2024, 4:15 a.m.