Description Arguments Details Author(s) Examples
This function is specifically designed for the generation of 2 groups of points within a matrix.
x |
A numerical vector of length 2 specifying the range of values possible for group 1. |
y |
A numerical vector of length 2 specifying the range of values possible for group 2. |
dim |
The number of dimensions (columns) to generate. |
points |
The number of data points in each group. |
by |
Indicates the frequency of ponts which are subsequently randomly picked according to the points argument. |
seed |
Sets the seed to make results reproducible. |
replace |
Passed to the |
... |
Arguments to pass on. |
Makes a matrix containing data for two groups of points. Specifying a specific number of points, dimensions, and range of points for each group is suported. The resulting matrix will have group 1 occupying the top half of the matrix and group 2 the bottom half.
Jason Serviss
1 | mat <- makeMatrix(x=c(0,1), y=c(0,1), dim=2, points=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.