StQ: S3 class for sets of _St_andarized _Q_uestionnaires

Description Usage Arguments Value Examples

View source: R/StQ.R

Description

Definition of an S3 class named StQ for sets of standardized questionnaires.

The structure of the class StQ comprises a list with 2 components:

Every variable name in the component Data must be present in the component DD.

Usage

1
2
3
4
StQ(
  Data = data.table(IDDD = character(0), Value = character(0)),
  DD = BuildDD()
)

Arguments

Data

Object of class data.table.

DD

Object of class DD

Value

Object of class StQ.

Examples

1
2
3
4
5
6
7
8
library(data.table)
data(ExampleDD)
data(ExampleStQ)
ExampleData <- getData(ExampleStQ)
Q <- StQ(Data = ExampleData, DD = ExampleDD)
Q
# Notice that only the slot Data appears on screen, but the object is not a Datadt data.table:
str(Q)

david-salgado/StQ documentation built on Aug. 12, 2021, 3:23 p.m.