Closed lwaldron closed 3 years ago
When the package is installed, curation .tsv files will be listable using (this is approximate):
filepaths <- list.files(system.file("inst/curation", package = "curatedMetagenomicDataCuration"), recursive = TRUE, pattern = "tsv$", full.names = TRUE)
Use this to create a vector of the paths to all curation tsv files.
read all of these using lapply and read.table or a function from the readr package, to create a list of data.frames. Test the read command using a single tsv file.
dflist <- lapply(filepaths, function(x) read.table(x))`
Use curatedMetagenomicData::joinListofDFs to join the list of data.frames into a single big data.frame to return.
Add function to the R directory.
Add roxygen2 markup and use RStudio "Document package" to add a man page automatically.
Added with https://github.com/waldronlab/curatedMetagenomicDataCuration/commit/751b0aaae0aec664e6529df8503ba0691b5d6092
When the package is installed, curation .tsv files will be listable using (this is approximate):
Use this to create a vector of the paths to all curation tsv files.
read all of these using lapply and read.table or a function from the readr package, to create a list of data.frames. Test the read command using a single tsv file.
Use curatedMetagenomicData::joinListofDFs to join the list of data.frames into a single big data.frame to return.
Add function to the R directory.
Add roxygen2 markup and use RStudio "Document package" to add a man page automatically.