DATA_TYPES: Data Types

DATA_TYPESR 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 allowed DATA_TYPE in the metadata. However, some functions may accept float or integer for specific function arguments. This is, where we use the term numeric.

  • 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 with several.ok = TRUE.

  • variable Function arguments of this type expect a character scalar that specifies one variable using the variable identifier given in the metadata attribute VAR_NAMES or, if label_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 attribute VAR_NAMES or, if label_col is set, given in the metadata attribute given in that argument. Labels can easily be translated using prep_map_labels

See Also

integer string


dataquieR documentation built on May 29, 2024, 7:18 a.m.