read_metabolomics: metabolomics read in function This function reads in...

Description Usage Arguments

View source: R/read_metabolomics.R

Description

metabolomics read in function This function reads in directory of csv files, using the filenames for method. Can handle multiple methods from multiple patients at the same time Look in given directory for .csv files, read all into a dataframe, adding method name and cleaning up sample ID. Replace NA values with min/10 per compound or with given value Requires dplyr, tidyr, stringr, reshape2

Usage

1
read_metabolomics(directory, na.value = 1, min_over10 = F)

Arguments

directory

directory containing .csv metabolomic tables in wide format

na.value

if no value present for a compound, replace with this value

min_over10

when TRUE will override na.value and replace na's with minimum value of the compound / 10


elittmann/erictools documentation built on Feb. 2, 2020, 11:01 p.m.