Description Usage Arguments Details Value Author(s) References See Also Examples
Convert data blocks in SDFset to character matrix with
datablock2ma, then store its numeric columns as numeric matrix and its
character columns as character matrix.
1 2 3 | datablock2ma(datablocklist, cleanup = " \\(.*", ...)
splitNumChar(blockmatrix)
|
datablocklist |
|
blockmatrix |
|
cleanup |
|
... |
option to pass on additional arguments |
...
datablock2ma |
|
splitNumChar |
|
Thomas Girke
...
Classes: SDFset
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## SDFset instance
data(sdfsample)
sdfset <- sdfsample
# Convert data block to matrix
blockmatrix <- datablock2ma(datablocklist=datablock(sdfset))
blockmatrix[1:4, 1:4]
# Split matrix to numeric matrix and character matrix
numchar <- splitNumChar(blockmatrix=blockmatrix)
names(numchar)
numchar[[1]][1:4,]
numchar[[2]][1:4,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.