View source: R/read_metabolomics.R
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
1 | read_metabolomics(directory, na.value = 1, min_over10 = F)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.