Function to present the mean and sd of a data set in the form Mean (SD)
presentMeanSdRemoveNAText(data, column.name, nrcode = NA)
data frame
the column name
non response code corresponding to the column
the mean(sd), -1 for failure
# 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