simulation_methods_integer: Integer type simulation methods

Description Usage Arguments

Description

Integer type simulation methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
simul_spec_integer_distr(
  n,
  not_null,
  unique,
  default,
  spec_params,
  na_ratio,
  levels_ratio,
  ...
)

simul_default_integer(
  n,
  not_null,
  unique,
  default,
  type,
  na_ratio,
  levels_ratio,
  ...
)

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

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

simul_restricted_integer_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).

range

Possible range of values from which to perform simulation.

values

Possible values from which to perform simulation.


DataFakeR documentation built on Sept. 24, 2021, 1:06 a.m.