represent_categorical_data_include_missing | R Documentation |
Function to find the number and percentages of categories
represent_categorical_data_include_missing(data, variable, nrcode = NA)
data |
a data frame |
variable |
the column name |
nrcode |
non response code |
number and percentages or error if failure
this.df <- data.frame(c(11, 78), c("m", "f"), stringsAsFactors = FALSE)
colnames(this.df) <- c("mark", "gender")
represent_categorical_data_include_missing(this.df, "gender", NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.