View source: R/counts_to_cases.R
counts_to_cases | R Documentation |
Convert data frame of counts to data frame of cases. data frame must contain a column with frequencies (counts) as generated by as.data.frame from a contingency table
counts_to_cases(x, countcol = "Freq")
x |
a |
countcol |
character string, name of the column of x containing the counts. Default name of the column is 'Freq'. |
data frame of cases of dimension (total number of counts as sum of 'Freq' in x) times 2.
counts_to_cases(as.data.frame(HairEyeColor[, , 1]), countcol = "Freq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.