character_dimension: Transform a dimension numeric attributes to character

View source: R/dimension_table_character_dimensions.R

character_dimensionR 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 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.

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.


josesamos/starschemar documentation built on May 6, 2024, 5:57 a.m.