read.abmi: Read Text File

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/read.abmi.R

Description

A variant of the read.table function to handle some specifics of ABMI raw data formats.

Usage

1
2
read.abmi(filename, dir = getwd(), remove.empty = TRUE,
header = TRUE, sep = ",", quote = "\"", ...)

Arguments

filename

character, name of the file to read.

dir

character, path of the directory where the file is located. By default, it is the current working directory. If specified othervise, it resets to the original value after the procedure.

remove.empty

logical. Because lines end with comma, last column is empty. This can be removed by this argument.

header

logical, if the forst row should be handled as header (for column names).

sep

character, separator used in the comma separated text file to separate entries of the rows.

quote

character, quotation marks that encapsulate values that should be treated as character. Note that the single quote is not used, because it occurrs in some species names.

...

other arguments passed to the function read.table.

Value

A data frame.

Author(s)

P\'eter S\'olymos, solymos@ualberta.ca

References

http://www.abmi.ca/

See Also

read.table, read.csv

Examples

1
2
3
4
5
6
7
8
## Not run: 
## There is no 'real' ABMI data as an example
## but any data set downloaded from the ABMI
## site can be used (www.abmi.ca), e.g.:
x <- read.abmi("RAW_T_BirdCounts63451.csv")
x

## End(Not run)

abmiOld documentation built on May 2, 2019, 5:54 p.m.

Related to read.abmi in abmiOld...