matrix_to_long: wrapper function around tidyverse's gather to convert a...

View source: R/util_generic.R

matrix_to_longR Documentation

wrapper function around tidyverse's gather to convert a matrix to long-format tibble

Description

NA values are removed from output

Usage

matrix_to_long(
  mat,
  value_name = "value",
  column_name = "sample",
  row_name = "sequence"
)

Arguments

mat

a matrix

value_name

target column name for the values

column_name

target column name for the row names

row_name

target column name for the column names


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.