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

Description Usage Arguments Value Note Author(s) Examples

View source: R/cle.LS.R

Description

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

Usage

1
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

Note

Compression only works on UNIX-family systems with gzip.

Author(s)

Ville-Petteri Makinen

Examples

1
2
3
4
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!

Mergeomics documentation built on Nov. 8, 2020, 6:58 p.m.