read.taf: Read TAF Table from File

Description Usage Arguments Details Value See Also Examples

View source: R/read.taf.R

Description

Read a TAF table from a file into a data frame.

Usage

1
2
read.taf(file, check.names = FALSE, stringsAsFactors = FALSE,
  fileEncoding = "UTF-8", ...)

Arguments

file

a filename.

check.names

whether to enforce regular column names, e.g. convert column name "3" to "X3".

stringsAsFactors

whether to import strings as factors.

fileEncoding

character encoding of input file.

...

passed to read.csv.

Details

Alternatively, file can be a directory or a vector of filenames, to read many tables in one call.

Value

A data frame in TAF format, or a list of data frames if file is a directory or a vector of filenames.

See Also

read.csv is the underlying function used to read a table from a file.

write.taf writes a TAF table to a file.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
8
## Not run: 
write.taf(catage.taf, "catage.csv")
catage <- read.taf("catage.csv")

write.taf(catage)
file.remove("catage.csv")

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.