Learn R Programming

ramify (version 0.2.0)

as.mat: Coerce to a "mat" Object

Description

Functions to check if an object is of class "mat", or coerce it if possible.

Usage

as.mat(x, ...)

## S3 method for class 'default': as.mat(x, ...)

## S3 method for class 'matrix': as.mat(x, ...)

## S3 method for class 'data.frame': as.mat(x, ...)

is.mat(x)

Arguments

x
A matrix or data frame.
...
Additional arguments to be passed to or from methods.