aorist: Calculate aoristic sum.

Description Usage Arguments Value Examples

View source: R/aorist.R

Description

Calculates aoristic sum from a table of entities with defined date ranges, based on assumption of uniform probability between limits.

Usage

1
2
aorist(data, weight = 1, start.date = NULL, end.date = NULL,
  bin.width = 100)

Arguments

data

Data table with (minimally) two numeric columns called Start and End.

weight

Numeric vector. The weight to be applied to each row in 'data', or a constant weight to be applied to all. Defaults to 1.

start.date

Numeric. Start of time period to be considered. Defaults to lowest value in data$Start.

end.date

Numeric. End of time period to be considered. Defaults to highest value in data$End.

bin.width

Numeric. The resolution of the analysis, in units of time. Defaults to 100.

Value

data table with two named columns: 'bin', a character vector specifying the date range represented by each chronological bin; 'aorist', a numeric vector giving the total probability mass assigned to each bin.

Examples

1
2
date.ranges <- data.table(Start=c(450, 450, 600), End=c(700, 800, 650), frag.count=c(3, 6, 25))
x <- aorist(date.ranges, weight=date.ranges$frag.count, 500, 1500, bin.width=50)

davidcorton/archSeries documentation built on May 4, 2021, 10:09 p.m.