as.antsMatrix | R Documentation |
convert types to an antsMatrix
as.antsMatrix(object, elementtype = "float", ...)
## S4 method for signature 'list'
as.antsMatrix(object, elementtype = "float")
## S4 method for signature 'data.frame'
as.antsMatrix(object, elementtype = "float")
## S4 method for signature 'matrix'
as.antsMatrix(object, elementtype = "float")
object |
An object |
elementtype |
e.g. "float" or "double" |
... |
other parameters |
as.antsMatrix(matrix(rnorm(10), nrow = 2))
mat <- matrix(rnorm(10), nrow = 2)
df <- as.data.frame(mat)
as.antsMatrix(df)
as.antsMatrix(as.list(df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.