Character type simulation methods

simul_spec_character_name(
  n,
  not_null,
  unique,
  default,
  spec_params,
  na_ratio,
  levels_ratio,
  ...
)

simul_default_character(
  n,
  not_null,
  unique,
  default,
  nchar,
  type,
  na_ratio,
  levels_ratio,
  ...
)

simul_restricted_character_in_set(
  n,
  not_null,
  unique,
  default,
  nchar,
  type,
  values,
  na_ratio,
  levels_ratio,
  ...
)

simul_restricted_character_fkey(
  n,
  not_null,
  unique,
  default,
  nchar,
  type,
  values,
  na_ratio,
  levels_ratio,
  ...
)

Arguments

n

Number of values to simulate.

not_null

Should NA values be forbidden?

unique

Should duplicated values be allowed?

default

Default column value.

spec_params

Set of parameters passed to special method.

na_ratio

Ratio of NA values (in terms of sample length) the sample should have.

levels_ratio

Fraction of levels (in terms of sample length) the sample should have.

...

Other parameters passed to column configuration in YAML file.

nchar

Maximum number of characters for each value.

type

Column raw type (sourced from configuration file).

values

Possible values from which to perform simulation.