R/sirt_matrix_names.R

Defines functions sirt_matrix_names

## File Name: sirt_matrix_names.R
## File Version: 0.07

sirt_matrix_names <- function(x, row_names=NULL, col_names=NULL, extract_names=NULL)
{
    if ( ! is.null(extract_names) ){
        row_names <- rownames(extract_names)
        col_names <- colnames(extract_names)
    }
    if ( ! is.null(row_names) ){
        rownames(x) <- row_names
    }
    if ( ! is.null(col_names) ){
        colnames(x) <- col_names
    }
    return(x)
}

Try the sirt package in your browser

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

sirt documentation built on Aug. 11, 2023, 5:07 p.m.