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

View source: R/export.attr.R

export.attrR Documentation

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)

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.

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.

Value

Invisibly returns TRUE on success.

Author(s)

Sylvain Mareschal

See Also

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


FSAtools documentation built on Aug. 19, 2023, 1:06 a.m.