tool.save {Mergeomics} | R Documentation

## 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

### Note

Compression only works on UNIX-family systems with gzip.

### Author(s)

Ville-Petteri Makinen

### Examples

    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!

[Package Mergeomics version 1.12.0 Index]