powered by
Generate a random dataset shaped like a square divided by a custom function
data.square( n = 200, min = 0, max = 1, f = function(x) x, levels = NULL, graph = TRUE, seed = NULL )
Number of observations in the dataset.
Minimum value on each variables.
Maximum value on each variables.
The fucntion that separate the classes.
Name of each class.
A logical indicating whether or not a graphic should be plotted.
A specified seed for random number generation.
A randomly generated dataset.
data.parabol, data.target1, data.target2, data.twomoons, data.xor
data.parabol
data.target1
data.target2
data.twomoons
data.xor
# NOT RUN { data.square () # }
Run the code above in your browser using DataLab