c.wDist: Combine method for wDist objects

View source: R/wDist.R

c.wDistR Documentation

Combine method for wDist objects

Description

Combine statistics from one or more wDist objects in a single data frame.

Usage

## S3 method for class 'wDist'
c(...)

Arguments

...

One or more wDist objects

Value

data.frame containing sample IDs, distance, and bearing statistics for each sample in ...

See Also

wDist

Examples

# load hydrogen isotope data for human hair in North America
d = subOrigData(group = "Modern human", mask = naMap, niter = 100)

# rescale from environmental isoscape to tissue isoscape
r = calRaster(known = d, isoscape = d2h_lrNA, mask = naMap)

# four unknown-origin examples
id = c("A", "B", "C", "D")
d2H = c(-110, -90, -105, -102)
un = data.frame(id,d2H)

# posterior probabilities
pp = pdRaster(r, unknown = un, mask = naMap)

# random collection locations
sites = d$data[sample(seq(length(d$data)), 4),]

# generate a wDist object
wd = wDist(pp, sites)

# combine stats and print
c(wd)

assignR documentation built on Sept. 1, 2023, 5:05 p.m.