preprocess_phenotypes: Cleans a phenotypes dataframe, tlhis is a helper function for...

Description Usage Arguments Value

View source: R/preprocess_covar_table.R

Description

Removes samples with at leas one NA value and phenotypes where all values describe the same values.

Usage

1
preprocess_phenotypes(phenotypes, samples_colname, phenotypes_to_include)

Arguments

phenotypes

data_frame with at least a samples column and some phenotype columns to be included.

samples_colname

string Column with the samples data.

phenotypes_to_include

String list with the list of phenotypes which should be included.

Value

DataFrame Rownames are the sample ids (of sample_colnames) and content contains the included phenotypes.


pujana-lab/systematicBNR documentation built on June 15, 2020, 12:44 p.m.