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)
}
alexanderrobitzsch/TAM documentation built on Feb. 21, 2024, 5:59 p.m.