Helper_function: Helper function

row_namesR Documentation

Helper function

Description

Helper function for matrix_data object

Usage

row_names(md)

row_names(md) <- value

col_names(md)

col_names(md) <- value

nrows(md)

ncols(md)

is_matrix_data(md)

is_grouped_matrix_data(md)

is_md_tbl(md)

extract_upper(md, diag = TRUE)

extract_lower(md, diag = TRUE)

extract_diag(md)

trim_diag(md)

filter_func(..., type = "full", diag = FALSE)

trim_duplicate(md, diag = TRUE)

simplify(md, keep = TRUE)

Arguments

md

a matrix_data object.

value

a valid value for dimension names.

diag

logical, if TRUE (default) will keep the diagonal of matrix data.

...

other parameters.

type

character, "full" (default), "upper", "lower" or "diag".

keep

logical, the output matrix remains symmetric if the input matrix is symmetric.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.