data.twomoons: Two moons dataset
Description
Generate a random dataset shaped like two moons.
Usage
data.twomoons(
r = 1,
n = 200,
sigma = 0.1,
levels = NULL,
graph = TRUE,
seed = NULL
)
Arguments
n
Number of observations in each class.
graph
A logical indicating whether or not a graphic should be plotted.
seed
A specified seed for random number generation.
Value
A randomly generated dataset.
Examples
Run this code# NOT RUN {
data.twomoons ()
# }
Run the code above in your browser using DataLab