data.diag | R Documentation |
Generate a random dataset shaped like a square divided by a custom function
data.diag(
n = 200,
min = 0,
max = 1,
f = function(x) x,
levels = NULL,
graph = TRUE,
seed = NULL
)
n |
Number of observations in the dataset. |
min |
Minimum value on each variables. |
max |
Maximum value on each variables. |
f |
The fucntion that separate the classes. |
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. |
A randomly generated dataset.
data.parabol
, data.target1
, data.target2
, data.twomoons
, data.xor
data.diag ()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.