IPDFileCheck (version 0.3.0)

presentMeanSdRemoveNAText: Function to present the mean and sd of a data set in the form Mean (SD)

Description

Function to present the mean and sd of a data set in the form Mean (SD)

Usage

presentMeanSdRemoveNAText(data, column.name, nrcode = NA)

Arguments

data

data frame

column.name

the column name

nrcode

non response code corresponding to the column

Value

the mean(sd), -1 for failure

Examples

Run this code
# NOT RUN {
presentMeanSdRemoveNAText(data.frame("Age" = c(21,15), "Name" = c("John","Dora")),"age",NA)
# }

Run the code above in your browser using DataCamp Workspace