pfExtract: Extract charcoal data for a list of sites

Description Usage Arguments Value Author(s) Examples

View source: R/pfExtract.R

Description

Extract charcoal data from an object returned by pfSiteSel

Usage

1

Arguments

ID

An object returned by pfSiteSel.

Value

out

A matrix of charcoal data with the following structure: out[,1]=Site identifiers, out[,2]=Depths, out[,3]=Estimated ages, out[,4]=Charcoal data.

Author(s)

O. Blarquez

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
## Retrieve a site
ID=pfSiteSel(site_name=="Pas-de-Fond")
## Or a group of sites (Western North America)
ID=pfSiteSel(continent=="North America", long<(-100))

## Extract data
A=pfExtract(ID)

# Plot the first site raw charcoal data
plot(A[A[,1]==ID$id_site[1],3],A[A[,1]==ID$id_site[1],4],type="l",main=ID$site_name[1],
     xlab="Age",ylab="raw Char")

## End(Not run)

oblarquez/paleofire documentation built on Dec. 29, 2021, 11 a.m.