subOrigData: subOrigData function

Description Usage Arguments Value Examples

View source: R/subOrigData_v4.R

Description

This function will permit subset the known-origin stable isotope dataset included in this package

Usage

1
subOrigData(taxon = NULL, group = NULL, mask = NULL)

Arguments

taxon

one string or a string vector. Select species names of known origin data. Details can be seen in knownOrig

group

one string or a string vector. Select group names of known origin data. Details can be seen in knownOrig

mask

SpatialPolygonsDataFrame. This mask will constrain the investigated area. If this is not provided, default of whole world is used.

Value

Data selected as SpatialPointsdataFrame from known-origin data from this package will be returned. It has one feature: d2H, which is ready to be fed into calRaster function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## WITHOUT mask
# extract data of taxon of Jackdaw, Partridge and Willow Grouse
d1 = subOrigData(taxon = c("Danaus plexippus", "Setophaga ruticilla", "Turdus migratorius"))
summary(d1)

# extract data of group of [1]insect and [2]bird
d2 = subOrigData(group = c("insect","bird"))
summary(d2)

# extract data of group of human which only has hair
d3 = subOrigData(group = "human")
summary(d3)

# extract data of taxon of hair from human
d4 = subOrigData(taxon = "Homo sapiens")
summary(d4)

## WITH mask
d5 = subOrigData(taxon = "Turdus merula", mask = naMap) # No isotope data found in mask you choose!
d6 = subOrigData(taxon = c("Danaus plexippus", "Setophaga ruticilla", "Turdus migratorius"), mask = naMap)
d7 = subOrigData(group = "human", mask = naMap)

SPATIAL-Lab/isorig documentation built on Aug. 13, 2019, 11:02 p.m.