represent_categorical_textdata: Function to represent categorical data in the form - numbers...

Description Usage Arguments Value Examples

View source: R/IPDFileCheck.R

Description

Function to represent categorical data in the form - numbers (percentage)

Usage

1

Arguments

data

data frame

variable

column name

nrcode

non response code

Value

the numbers (percentage) , error for failure

Examples

1
2
3
df <- data.frame(c(11, 78), c("m", "f"), stringsAsFactors = FALSE)
colnames(df) <- c("mark", "gender")
represent_categorical_textdata(df, "gender", NA)

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