starschemar (version 1.2.0)

character_dimension: 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 dimension_table character_dimension( dimension, length_integers = TRUE, NA_replacement_value = NULL )

Arguments

dimension

A dimension_table object.

length_integers

A list of pairs name = length, for each attribute name its length.

NA_replacement_value

A string, value to replace NA values.

Value

A dimension_table object.

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.