tool.read: Read a data frame from a file

Description Usage Arguments Details Value Author(s) Examples

View source: R/cle.LS.R

Description

tool.read reads contents of given input file.

Usage

1
tool.read(file, vars = NULL)

Arguments

file

file name to be read

vars

if we want to read particular attributes (columns) from the input file, we need to specify names of these attributes within list vars (attribute names can be e.g. MODULE, GENE, LOCUS, etc.)

Details

All lines with NAs are excluded.

Value

dat

data frame including content of the given file. If vars is specified, only the listed columns inside the vars list will be returned.

Author(s)

Ville-Petteri Makinen

Examples

1
2
3
4
5
## read the network file as an example:
net.info <- tool.read(system.file("extdata","network.mouseliver.mouse.txt", 
package="Mergeomics"))
dim(net.info)
names(net.info)

zeynebkurtUCLA/Mergeomics documentation built on May 14, 2019, 1:59 a.m.