represent_categorical_data_include_missing: Function to find the number and percentages of categories

Description Usage Arguments Value Examples

View source: R/IPDFileCheck.R

Description

Function to find the number and percentages of categories

Usage

1

Arguments

data,

a data frame

variable

the column name

nrcode

non response code

Value

number and percentages or error if failure

Examples

1
2
3
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)

IPDFileCheck documentation built on Feb. 1, 2022, 9:07 a.m.