rand_correlate: Make dataset

View source: R/rand-correlate.R

rand_correlateR Documentation

Make dataset

Description

Make rand dataset

Usage

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)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.