datablock2ma | R Documentation |
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.
datablock2ma(datablocklist, cleanup = " \\(.*", ...)
splitNumChar(blockmatrix)
datablocklist |
|
blockmatrix |
|
cleanup |
|
... |
option to pass on additional arguments |
...
datablock2ma |
|
splitNumChar |
|
Thomas Girke
...
Classes: SDFset
## 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.