| DATA_TYPES {dataquieR} | R Documentation |
Data Types
Description
Data Types of Study Data
In the metadata, the following entries are allowed for the variable attribute DATA_TYPE:
Usage
DATA_TYPES
Format
An object of class list of length 4.
Details
-
integerfor integer numbers -
stringfor text/string/character data -
floatfor decimal/floating point numbers -
datetimefor timepoints
Data Types of Function Arguments
As function arguments, dataquieR uses additional type specifications:
-
numericis a numerical value (float or integer), but it is not an allowedDATA_TYPEin the metadata. However, some functions may acceptfloatorintegerfor specific function arguments. This is, where we use the termnumeric. -
enumallows one element out of a set of allowed options similar to match.arg -
setallows a subset out of a set of allowed options similar to match.arg withseveral.ok = TRUE. -
variableFunction arguments of this type expect a character scalar that specifies one variable using the variable identifier given in the metadata attributeVAR_NAMESor, iflabel_colis set, given in the metadata attribute given in that argument. Labels can easily be translated using prep_map_labels -
variable listFunction arguments of this type expect a character vector that specifies variables using the variable identifiers given in the metadata attributeVAR_NAMESor, iflabel_colis set, given in the metadata attribute given in that argument. Labels can easily be translated using prep_map_labels