Learn R Programming

Mergeomics (version 1.0.0)

tool.save: Save a data frame in tab-delimited file

Description

tool.save saves a given data frame into a specified file within a given directory.

Usage

tool.save(frame, file, directory = NULL, verbose = TRUE, compression = FALSE)

Arguments

frame
data frame to be saved into file
file
name of the output file to be written
directory
path of the directory for the file
verbose
specifies whether the information about file saving process will be displayed to user
compression
specifies whether the file is compressed while saving. Applicable for only UNIX-family systems with gzip.

Value

fname
returns file name with full path

Examples

Run this code
aa<- data.frame(MODULE=c("Mod1", "Mod1", "Mod2", "Mod2", "Mod3"), 
NODE=c("GeneA", "GeneC", "GeneB", "GeneC", "GeneA"))
tool.save(aa, "aa.save.txt")
file.remove("aa.save.txt") ## delete the saved file!

Run the code above in your browser using DataLab