rand_correlate: Make dataset

Description Usage Arguments Value Author(s) Examples

View source: R/rand-correlate.R

Description

Make rand dataset

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
rand_correlate(
  rows = 12,
  cols = NULL,
  obs = 100,
  row.names = NULL,
  col.names = NULL,
  type = "cubic",
  frequency = 0.15,
  reorder = TRUE,
  seed = NULL,
  ...
)

rand_dataset(
  vars = 12,
  obs = 100,
  reorder = TRUE,
  row.names = NULL,
  col.names = NULL,
  type = "cubic",
  frequency = 0.15,
  seed = NULL,
  ...
)

Arguments

rows, cols

number of rows and columns.

obs

number of observation.

row.names, col.names

row/column names.

type

one of "perlin", "cubic", "simplex", "value", "worley" or "white".

frequency

determines the granularity of the features in the noise.

reorder

reorder the dataset at random.

seed

an integer value or NULL.

...

extra parameters.

vars

number of variables.

Value

a correlate object or data.frame.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

1
2
3

houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.