Learn R Programming

FSAtools (version 2.0.5)

export.attr: Print an attribute of a 'fsa' object to a file

Description

Adds the content of an attribute of a 'fsa' object to a CSV file, either appending new rows or columns.

Typically used in generic.process via the design file to export numeric data during the processing.

Usage

export.attr(x, attr, file, meta = character(0), sep = "\t", dec = ".", quote = TRUE)

Value

Invisibly returns TRUE on success.

Arguments

x

The fsa object whose attribute is to be printed.

attr

Single character value, the name of the attribute to print.

file

Single character value, the path and name to the file to create or update.

meta

Character vector, the names of x meta-data fields to export as extra columns.

sep

To be passed to write.table.

dec

To be passed to write.table.

quote

To be passed to write.table.

Author

Sylvain Mareschal

Details

New data will be appended below the content of the file with extra 'meta' columns, row names will be added only if the file was empty.

See Also

read.fsa, peaks.fsa, genotype.closest.fsa, genotype.ratio.fsa, classify