sum_t: Fabricate header and stub for the generation of Summary Table

Description Usage Arguments Details Examples

View source: R/RecodeR.R

Description

This function is to fabricate header and stub for the generation of Summary Table

Usage

1
sum_t(dataframe)

Arguments

dataframe

dataframe

Details

Use in combination with the following spec in SC:

Q30M Header_Qno. Label

C1 Att1

C2 Att2

C3 Att3

Q31C Qno* Stub_Qno. Label

*Qno where individual att come up

Examples

1
2
3
4
5
6
7
8
9
att1 = c ("1", "2", "3", "4", "5")
att2 = c (NA, "2", "3", NA, "5")
att3 = c (NA, NA, NA, NA, NA)
att4 = c ("1", "2", "4", "3", "1")
att5 = c ("1", "2", "5", NA, "5")

df = data.frame(att1, att2, att3, att4, att5)

sum_t(df)

momo3246/recode documentation built on Sept. 30, 2020, 2:14 p.m.