binPrep: Binning function of radiocarbon dates.

Description Usage Arguments Details Value See Also

View source: R/aggregation.R

Description

Prepare a set of bins for controlling the aggregation of radiocarbon dates known to be from the same phase of same archaeological site (for use with spd). Used in cases where there is a concern that unusually high levels of sampling for radiocarbon at a given site or in a given site phase will impede comparison between sites or phases.

Usage

1
binPrep(sites, ages, h)

Arguments

sites

a vector of character strings (or number to coerce to character) of all sites or site phases

ages

a vector of uncalibrated conventional radiocarbon ages or a CalDates class object obtained using the calibrate function.

h

a single numeric value passed to hclust control degree of grouping of similar ages in a phase site.

Details

If ages is a CalDates class object, median dates are used for the clustering.

Value

A vector of character strings with the same length of the object supplied for the argument ages identifying intra-site or intra-phase grouping, for use with spd

See Also

spd for generating SPD; binsense for sensitivity analysis pertaining the choice of the parameter h.


rcarbon documentation built on Oct. 1, 2018, 5:03 p.m.