character_dimension: Transform a dimension numeric attributes to character

Description Usage Arguments Details Value

View source: R/dimension_table_character_dimensions.R

Description

Transforms numeric type attributes of a dimension into character type.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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.


starschemar documentation built on Jan. 13, 2021, 7:33 p.m.