make.a.tidy.dataset: make a tidy dataset

Description Usage Arguments Value

View source: R/dataset_utils.R

Description

Takes a list of matrices with similar row and column names and runs tidyr::gather across each to make a "long" dataset with a column of values for each matrix in the list.

Usage

1
2
make.a.tidy.dataset(datasets, na.rows = TRUE, na.cols = FALSE,
  use.dims = NULL, dim.names = c("Gene", "Sample"))

Arguments

datasets

list of matrices (columns are samples, rows are genes)

na.rows

if TRUE, add NAs for missing rows, otherwise they are removed

na.cols

if TRUE, add NAs for missing columns, otherwise they are removed

use.dims

either an integer or character vector of length 1

dim.names

character vector of length two - these become the column labels in the tidy dataset for the rownames and colnames of the original matrices

Value

a tidy dataframe


cancerdatasci/ceres documentation built on May 20, 2019, 6:44 p.m.