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

View source: R/IPDFilecheck.R

represent_categorical_textdataR Documentation

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

Description

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

Usage

represent_categorical_textdata(data, variable, nrcode)

Arguments

data

data frame

variable

column name

nrcode

non response code

Value

the numbers (percentage) , error for failure

Examples

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

sheejamk/ipdfilecheck documentation built on March 10, 2024, 11:23 p.m.