R/immer_matrix_add_names.R

Defines functions immer_matrix_add_names

## File Name: immer_matrix_add_names.R
## File Version: 0.01

immer_matrix_add_names <- function(x, row=NULL, col=NULL)
{
    if ( ! is.null(row) ){
        rownames(x) <- row
    }
    if ( ! is.null(col) ){
        colnames(x) <- col
    }
    return(x)
}

Try the immer package in your browser

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

immer documentation built on Aug. 22, 2022, 5:05 p.m.