Function to create a matrix of occurrence record densities
through geological time from an occurrence dataset. Each column
represents a taxon. Each row represents a user defined window of
time, with the first row starting at the oldest FAD in the
dataset and spanning to the youngest LAD stepwise by the user
defined window (default of 1 Ma). Occurrence records are
densified by generating a vector of time points from occurrence
FAD to occurrence LAD (default step of 0.1 Ma), then tallied in
two ways. The first way is a simple histogram count of
points-per-window, with the same number of histogram bins as time
steps between the overall taxon FAD and LAD. The second way is a
kernel density estimate, using a Gaussian kernel with a equally
spaced estimatopms equal to the number of timesteps between the
overall taxon FAD and LAD
# load datasetdata("brachios")
# subsample brachios to make for a short example runtimeset.seed(1)
brachios <- brachios[sample(1:nrow(brachios), 1000),]
# densify rangesdens <- densify(brachios)