simulation_methods_date: Date type simulation methods

simulation_methods_dateR Documentation

Date type simulation methods

Description

Date type simulation methods

Usage

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

simul_default_date(
  n,
  not_null,
  unique,
  default,
  type,
  min_date,
  max_date,
  format,
  na_ratio,
  levels_ratio,
  ...
)

simul_restricted_date_range(
  n,
  not_null,
  unique,
  default,
  type,
  range,
  format,
  na_ratio,
  levels_ratio,
  ...
)

simul_restricted_date_fkey(
  n,
  not_null,
  unique,
  default,
  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.

type

Column raw type (sourced from configuration file).

format

Date format used to store dates.

range, min_date, max_date

Date range or minimum and maximum date from which to simulate data.

values

Possible values from which to perform simulation.


DataFakeR documentation built on Feb. 16, 2023, 7:38 p.m.