Provides a built-in data frame showing the list of allowed Opal valueType values and their corresponding R data types. This data frame is mainly used for internal processes and programming.

valueType_list

Format

data.frame

A data frame with 12 rows and 7 columns:

valueType

data type as described in Opal

typeof

data type provided by base::typeof(x)

class

data class provided by attributes(x)

class

data class provided by base::class(x) explicit class

call

function to transpose object according base::do.call function

toValueType

ensemble data type as described in Opal

genericType

ensemble data type which valueType belongs

...

Details

The valueType is a declared property of a variable that is required in certain functions to determine handling of the variables. Specifically, valueType refers to the OBiBa data type of a variable. The valueType is specified in a data dictionary in a column 'valueType' and can be associated with variables as attributes. Acceptable valueTypes include 'text', 'integer', 'decimal', 'boolean', datetime', 'date'. The full list of OBiBa valueType possibilities and their correspondence with R data types are available using valueType_list. The valueType can be used to coerce the variable to the corresponding data type.

Examples

{

head(valueType_list)

}
#> # A tibble: 6 × 7
#>   valueType typeof    class explicit_class call          toValueType genericType
#>   <chr>     <chr>     <chr> <chr>          <chr>         <chr>       <chr>      
#> 1 NA        character NA    character      as.character… text        character  
#> 2 text      character NA    character      as.character… text        character  
#> 3 integer   integer   NA    integer        as_any_integ… integer     numeric    
#> 4 decimal   double    NA    numeric        as.numeric    decimal     numeric    
#> 5 boolean   logical   NA    logical        as_any_boole… boolean     numeric    
#> 6 date      double    Date  Date           as_any_date   date        date