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
-
integer
for integer numbers -
string
for text/string/character data -
float
for decimal/floating point numbers -
datetime
for timepoints
Data Types of Function Arguments
As function arguments, dataquieR uses additional type specifications:
-
numeric
is a numerical value (float or integer), but it is not an allowedDATA_TYPE
in the metadata. However, some functions may acceptfloat
orinteger
for specific function arguments. This is, where we use the termnumeric
. -
enum
allows one element out of a set of allowed options similar to match.arg -
set
allows a subset out of a set of allowed options similar to match.arg withseveral.ok = TRUE
. -
variable
Function arguments of this type expect a character scalar that specifies one variable using the variable identifier given in the metadata attributeVAR_NAMES
or, iflabel_col
is set, given in the metadata attribute given in that argument. Labels can easily be translated using prep_map_labels -
variable list
Function arguments of this type expect a character vector that specifies variables using the variable identifiers given in the metadata attributeVAR_NAMES
or, iflabel_col
is set, given in the metadata attribute given in that argument. Labels can easily be translated using prep_map_labels