Learn R Programming

fdm2id (version 0.9.9)

data.target2: Target2 dataset

Description

Generate a random dataset shaped like a target.

Usage

data.target2(
  minr = c(0, 2),
  maxr = minr + 1,
  initn = 1000,
  levels = NULL,
  graph = TRUE,
  seed = NULL
)

Value

A randomly generated dataset.

Arguments

minr

Minimum radius of each class.

maxr

Maximum radius of each class.

initn

Number of observations at the beginning of the generation process.

levels

Name of each class.

graph

A logical indicating whether or not a graphic should be plotted.

seed

A specified seed for random number generation.

See Also

data.diag, data.parabol, data.target1, data.twomoons, data.xor

Examples

Run this code
data.target2 ()

Run the code above in your browser using DataLab