represent_categorical_textdata | R Documentation |
Function to represent categorical data in the form - numbers (percentage)
represent_categorical_textdata(data, variable, nrcode)
data |
data frame |
variable |
column name |
nrcode |
non response code |
the numbers (percentage) , error for failure
df <- data.frame(c(11, 78), c("m", "f"), stringsAsFactors = FALSE)
colnames(df) <- c("mark", "gender")
represent_categorical_textdata(df, "gender", NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.