matrix.dual: Coerce the first component of the dual object into a matrix.

Description Usage Arguments

View source: R/mc_structure_reshape.R

Description

Coerce the first component of the dual object into a matrix.

Usage

1
2
3
4
5
## S3 method for class 'dual'
matrix(data, nrow, ncol = 1, byrow = FALSE, dimnames = NULL)

## S4 method for signature 'dual'
matrix(data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL)

Arguments

data

A "dual" object.

nrow

a positive integer; the desired number of rows.

ncol

a positive integer; the desired number of rows.

byrow

TRUE or FALSE; whether to fill the matrix by rows.

dimnames

A dimnames attribute for the matrix: NULL or a list of length 2 giving the row and column names respectively. An empty list is treated as NULL, and a list of length one as row names. The list can be named, and the list names will be used as names for the dimensions.


ADtools documentation built on Nov. 9, 2020, 5:09 p.m.