Description Usage Arguments Details Value Author(s) See Also Examples
Create a numeric matrix from a list of values
1 |
listOfValues |
A |
fill |
The initializing fill value for the empty matrix. |
mode |
Either |
This is primarily a helper function for the concat.split()
function when
creating the "expanded" structure. The input is anticipated to be a list
of
values obtained using base::strsplit()
.
A matrix
.
Ananda Mahto
1 2 3 4 5 6 | invec <- c("1,2,4,5,6", "1,2,4,5,6", "1,2,4,5,6",
"1,2,4,5,6", "-1,1,2,5,6", "1,2,5,6")
A <- strsplit(invec, ",")
splitstackshape:::numMat(A)
splitstackshape:::numMat(A, fill = 0)
splitstackshape:::numMat(A, mode = "value")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.