R/miceadds_matrix2.R

## File Name: miceadds_matrix2.R
## File Version: 0.05


miceadds_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 miceadds package in your browser

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

miceadds documentation built on May 29, 2024, 11:05 a.m.