readData: Read tabulated text files

View source: R/readData.R

readDataR Documentation

Read tabulated text files

Description

Read tab delimited text files with specific format definition

Usage

readData(fpath, fform)

Arguments

fpath
fform

file format definition (see details below).

Details

List of available format definitions for tab delimited text files:

  • experimental.design

  • mapped.probe.sequences

  • restriction.fragment

  • restriction.site

  • nimblegen.ndf

  • nimblegen.updated

  • nimblegen.pair

Each format definition provides the following informations:

  • comment : character, same as the comment.char parameter of read.table function

  • skip : integer, same as the skip parameter of read.table function

  • header : logical, same as the header parameter of read.table function

  • sep : character, same as the sep parameter of read.table function

  • table : data.frame with the following fields

    • columns : character, original column names when header is present

    • classes : character, R classes used to import column values. Same as the colClasses parameter of read.table function

    • extract : logical, enable/disable the importation of each column

    • name.as : character, optional renaming of extracted columns

    • description : character, column description

Value

readData returns a data.frame

Author(s)

Benjamin Leblanc

See Also

verifyInputFiles


benja0x40/MRA.TA documentation built on March 13, 2023, 5:15 a.m.