Description Usage Arguments Value Note Examples
Creates a named matrix of toy data from an m
-dimensional
zero-mean normal distribution with identity covariance matrix.
For convenience in various examples and tests.
1 | createData(n, m, n.na = 0)
|
n |
A non-negative integer giving the number of observations/samples. |
m |
A non-negative integer giving the number of variables/features. |
n.na |
An integer from |
An n
times m
numeric matrix of observations from
zero-mean Gaussian random variables.
The n.na
NA
s are randomly inserted in the output.
1 2 3 4 5 6 | createData(10, 4)
createData(1, 2)
# Also works for the degenerate cases!
createData(3, 0)
createData(0, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.