character_dimension {starschemar} | R Documentation |
Transform a dimension numeric attributes to character
Description
Transforms numeric type attributes of a dimension into character type.
Usage
character_dimension(
dimension,
length_integers = TRUE,
NA_replacement_value = NULL
)
## S3 method for class 'dimension_table'
character_dimension(
dimension,
length_integers = TRUE,
NA_replacement_value = NULL
)
Arguments
dimension |
A |
length_integers |
A |
NA_replacement_value |
A string, value to replace NA values. |
Details
It allows indicating the amplitude for some fields, filling with zeros on the left: This is useful to make the alphabetical order of the result correspond to the numerical order. It also allows indicating the literal to be used in case the numerical value is not defined. For dates, for not defined values, the value "9999-12-31" is assigned.
Value
A dimension_table
object.
[Package starschemar version 1.2.5 Index]