truthTab builds a truth table from an input table, which essentially means that duplicated rows are removed and the number of occurrences of each unique row is stored.truthTab(x, frequency = NULL, switch = FALSE, case.cutoff = 0)## S3 method for class 'truthTab':
print(x, row.names = FALSE, show.cases = TRUE, ...)
as.integer,
i.e. logicals are also possible. NA's are not allowed.nrow(x). All elements must be nonegative, NA's are not allowed.x to be switched, i.e. 0 is replaced by 1 are vice versa.x. Combinations with fewer than case.cutoff occurrences are removed.print.data.frame.truthTab returns a data frame with additional class x.
The number of occurrences and enumeration of the cases (taken from rownames(x)) are saved in attributes cna package is given in cna-package.