read.xls.tabbed: Read a 'tabbed' Excel age data file

Description Usage Arguments Details Value See Also Examples

View source: R/io.r

Description

Reads distributional data (like measured ages) from an Excel file which contains one worksheet per sample/data set. The sample names are the worksheet names.

Usage

1
2
read.xls.tabbed(filename, sheets = NULL, age.column = "preferred.age",
  verbose = TRUE, ...)

Arguments

filename

The filename to load.

sheets

Optional vector specifying the worksheets to import.

age.column

Column name containing the age data in each sheet.

verbose

Print status messages during import.

...

Additional parameters passed on to read.xls.

Details

Further arguments to read.xls() can be passed in the ... parameter, e.g. skip=n to skip n lines at the top of each table. sheets allow to import only a subset of worksheets, either a character vector specifying the sheet names, or a numerical vector can be given. age.column is the the column name within each worksheet containing the data to be loaded. If verbose=TRUE, status messages are printed on the console during data import, as read.xls() has to be called repeatedly for each worksheet, which can get slow.

Value

A list of distributional data vectors (like e.g. ages) of varying length. The names are taken from the (chosen) worksheet names.

See Also

read.xls.tabbed, read.xls

Examples

1
2
datafile<-system.file("extdata", "Tarim.xls", package="ggprovenance")
agedata<-read.xls.flat(datafile)

thegeologician/ggprovenance documentation built on Sept. 26, 2021, 8:59 a.m.