represent_numerical_data_forsubgroups | R Documentation |
Function to find the number and percentages of categories
represent_numerical_data_forsubgroups(data, variable1, variable2, nrcode = NA)
data |
a data frame |
variable1 |
the column name of the variable to be grouped based on (categorical column) |
variable2 |
the column name of the variable to represented (numerical data) |
nrcode |
non response code for the variable2 |
the subgroup
this.df <- data.frame(c(11, 78,22), c("m", "f", "f"), c(1,2,2),
stringsAsFactors = FALSE)
colnames(this.df) <- c("mark", "gender", "group")
represent_numerical_data_forsubgroups(this.df, "group", "mark", NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.