Learn R Programming

ANTsR (version 1.0)

as.antsMatrix: as.antsMatrix

Description

convert types to an antsMatrix

Usage

as.antsMatrix(object, ...)

# S4 method for list as.antsMatrix(object, elementtype = "float")

# S4 method for data.frame as.antsMatrix(object, elementtype = "float")

# S4 method for matrix as.antsMatrix(object, elementtype = "float")

Arguments

object

An object

...

other parameters

elementtype

e.g. "float" or "double"

Methods (by class)

  • list:

  • data.frame:

  • matrix:

Examples

Run this code
# NOT RUN {
as.antsMatrix(matrix(rnorm(10), nrow=2))
# }

Run the code above in your browser using DataLab