CopyFiles: Copy the taxonomic tables and move the R session to the new...

View source: R/CopyFiles.R

CopyFilesR Documentation

Copy the taxonomic tables and move the R session to the new directory

Description

Creates a new directory, copies the taxonomic tables, OTU table, metadata file and the readnumber file to the new directory, and moves the R session to the new directory. This leaves the processed reads and taxonomic tables intact where they are and allows the further analysis steps to be done in clean new folder.

Usage

CopyFiles(folders = "*TaxonomicTables", files = "*table.txt", meta = NULL, folder.name = "",
    copy.to)

Arguments

folders

Names of the directories where the taxonomic tables to be copied are. Defaults to all folders in the current working directory with names ending 'TaxonomicTables'.

files

List of files to be copied. Defaults to all files in the specified folders with names ending '_table.txt'.

meta

Metadata file. Should be the name of a text file.

folder.name

Folder name that was given to ProcessReads and Taxonomictable functions.

copy.to

Directory that should be created (not an existing folder!).

Author(s)

Katri Korpela

Examples

	## Not run: 
#Create a new folder called NewFolder and copy all tables from the folder 
#ExampleTaxonomicTables into the new folder.
CopyFiles(folders = 'ExampleTaxonomicTables', 
          files = '*table.txt', 
          copy.to = '/new/folder/directory/NewFolder')


## End(Not run)

katrikorpela/mare documentation built on July 17, 2022, 2:49 a.m.