R/tam_matrix2.R

Defines functions tam_matrix2

Documented in tam_matrix2

## File Name: tam_matrix2.R
## File Version: 0.04

tam_matrix2 <- function(x, nrow=NULL, ncol=NULL)
{
    if ( is.null(ncol) ){
        ncol <- length(x)
    }
    if ( is.null(nrow) ){
        nrow <- 1
    }
    y <- matrix(x, nrow=nrow, ncol=ncol, byrow=TRUE)
    return(y)
}

Try the TAM package in your browser

Any scripts or data that you put into this service are public.

TAM documentation built on Aug. 29, 2022, 1:05 a.m.