Learn R Programming

astrochron (version 1.6)

A Computational Tool for Astrochronology

Description

Routines for astrochronologic testing, astronomical time scale construction, and time series analysis . Also included are a range of statistical analysis and modeling routines that are relevant to time scale development and paleoclimate analysis.

Copy Link

Version

Install

install.packages('astrochron')

Monthly Downloads

516

Version

1.6

License

GPL-3

Maintainer

Stephen Meyers

Last Published

February 25th, 2026

Functions in astrochron (1.6)

cb

Combine multiple vectors
bioturb

Bioturbate time series using diffusion model from Guinasso and Schinck (1975), as in Liu et al. (2021)
constantSedrate

Apply a constant sedimentation rate model to transform a spatial series to temporal series
bergerPeriods

Obliquity and precession periods of Berger et al. (1992)
conv_fft

Convolution through Fast Fourier Transform
confAdjust

Adjust spectrum confidence levels for multiple comparisons
calcPeriods

Calculate eccentricity, obliquity and precession periods in ka, given g, s and k in arcsec/yr
bicoherence

bicoherence: Calculate bispectrum and bicoherence using WOSA method as detailed in Choudhury et al. (2008).
clipIt

Create non-linear response by clipping stratigraphic series
cosTaper

Apply cosine taper to stratigraphic series
eAsmTrack

Track ASM null hypothesis significance level minima in eASM results
demean

Remove mean value from stratigraphic series
diffAccum

Model differential accumulation
eAsm

Evolutive Average Spectral Misfit
detrend

Subtract linear trend from stratigraphic series
delPts

Interactively delete points in plot
cycles

Generate harmonic model
dpssTaper

Apply DPSS taper to stratigraphic series
deconv

Wiener Deconvolution through Fast Fourier Transform
divTrend

Divide by linear trend in stratigraphic series
etp

Generate eccentricity-tilt-precession models
flip

Flip stratigraphic series
eha

Evolutive Harmonic Analysis & Evolutive Power Spectral Analysis
gausTaper

Apply Gaussian taper to stratigraphic series
extract

Extract record from EHA time-frequency output or eAsm output
freq2sedrate

Convert record of local spatial frequency (from EHA) to sedimentation rate curve
getData

Download file from astrochron data server
getColor

Query R for color information
eTimeOptTrack

Track eTimeOpt r2 maxima
eTimeOpt

eTimeOpt: Evolutive implementation of TimeOpt (Meyers, 2015; Meyers, 2019)
getLaskar

Download Laskar et al. (2004, 2011a, 2011b) astronomical solutions
insoDiff

insolation difference map using Laskar et al. (2004) insolation calculations
hilbert

Hilbert transform of stratigraphic series
headn

List column numbers for each variable
hannTaper

Apply Hann taper to stratigraphic series
insoMap

generate an insolation map using Laskar et al. (2004) insolation calculations
insoSeries

Laskar et al. (2004) insolation calculations
imbrie

Imbrie and Imbrie (1980) ice sheet model
idPts

Interactively identify points in plot
impulseResponse

Impulse response function calculation
linterpLH13

Piecewise linear interpolation of stratigraphic series using the approach of Laepple and Huybers (2013)
lowpass

Lowpass filter stratigraphic series
linterp

Piecewise linear interpolation of stratigraphic series
logT

Log transformation of stratigraphic series
lowspec

Robust Locally-Weighted Regression Spectral Background Estimation
iso

Isolate data from a specified stratigraphic interval
modelA

Example stratigraphic model series
linage

Tune stratigraphic series to an astronomical target using graphical interface
integratePower

Determine the total power within a given bandwidth
makeNoise

Generate noise surrogates from a theoretical power spectrum
mwCor

Calculate moving window correlation coefficient for two stratigraphic series, using a 'dynamic window'
multiTest

Adjust spectral p-values for multiple comparisons
mtmAR

Intermediate spectrum test of Thomson et al. (2001)
mtmML96

Mann and Lees (1996) robust red noise MTM analysis
mwStats

'Dynamic window' moving average, median and variance of stratigraphic series
mwStatsGrid

'Dynamic window' moving average, median and variance of stratigraphic series, using evenly spaced spatial/temporal grid
mwin

Determine 'dynamic moving window' for stratigraphic series, adjusting for changing sample density to maintain a window of constant duration
mwMinMax

'Dynamic window' moving assessment of maxima and minima in stratigraphic series
mtmPL

Multitaper Method Spectral Analysis with Power Law (1/f) fit
peak

Identify maxima of peaks in series, filter at desired threshold value
pad

Pad stratigraphic series with zeros
mtm

Multitaper method spectral analysis
plotEha

Create color time-frequency plots from eha results.
pl

Set up plots
noLow

Fit and remove Lowess smoother from stratigraphic series
plS

Set default plotting parameters for vertical stratigraphic plots
mwinGrid

Determine 'dynamic moving window' for stratigraphic series, adjusting for changing sample density to maintain a window of constant duration; output on evenly spaced grid
noKernel

Remove Gaussian kernel smoother from stratigraphic series
prewhiteAR

Prewhiten stratigraphic series with autoregressive filter, order selected by Akaike Information Criterion
periodogram

Simple periodogram
replEps

Replace values <= 0 with smallest positive value
repl0

Replace values < 0 with 0
resample

Resample stratigraphic series
pwrLaw

Generate power law (1/f) noise surrogates
rmNA

Remove stratigraphic levels that contain one or more NAs
prewhiteAR1

Prewhiten stratigraphic series with AR1 filter, using 'standard' or unbiased estimate of rho
readMatrix

Read data matrix from file
read

Read data from file
sedRamp

Apply 'ramping' sedimentation rate model to convert time to stratigraphy
stratPCA

Principal Component Analysis on Stratigraphic Series
surrogateCor

Estimate correlation coefficient and significance for serially correlated data
s

Standardize variable in stratigraphic series
strats

Summary statistics for stratigraphic series
slideCor

Identify optimal spatial/temporal shift to maximize correlation between two stratigraphic/time series.
sedrate2time

Integrate sedimentation rate curve to obtain time-space map
surrogates

Generate phase-randomized surrogate series as in Ebisuzaki (1997)
sortNave

Remove missing entries, sort data, average duplicates
rankSeries

Create lithofacies rank series from bed thickness data
stepHeat

Ar/Ar Geochronology: Generate an Ar/Ar age spectrum and calculate step-heating plateau age.
pwrLawFit

Estimate power law (1/f) fit to power spectrum
testPrecession

Astrochronologic testing via the precession amplitude modulation approach of Zeeden et al. (2015).
timeOptBMCMCplot

TimeOptBMCMCplot: Generate summary figures and statistics for TimeOptBMCMC results
timeOpt

TimeOpt: Evaluation of eccentricity-related amplitude modulation and bundling in paleoclimate data
tanerFC

Apply Taner bandpass or lowpass filter to Fourier coefficients
testTilt

Astrochronologic testing via the obliquity amplitude modulation approach of Zeeden et al. (2019).
timeOptBMCMC

TimeOptBMCMC: A Bayesian implementation of TimeOpt that calculates posterior PDFs for precession frequency, sedimentation rate, and Solar System g- and s-frequencies, using adaptive MCMC
taner

Apply Taner bandpass or lowpass filter to stratigraphic series
testBackground

Evaluate power spectrum false positive rates via Monte Carlo simulation
timeOptB

TimeOptB: A Bayesian implementation of TimeOpt that calculates posterior PDFs for precession frequency and sedimentation rate
synthStrat

Synthesize stratigraphy from forcing function
timeOptPlot

TimeOptPlot: Generate summary figure for TimeOpt analyses
traceFreq

Frequency-domain minimal tuning: Use interactive graphical interface to trace frequency drift
timeOptTemplate

TimeOpt analysis using variable sedimentation models
timeOptBSim

TimeOptBSim: Significance testing via Monte Carlo simulation for TimeOptB
timeOptMCMC

TimeOptMCMC: A Bayesian implementation of TimeOpt that evaluates eccentricity-related amplitude modulation and bundling in paleoclimate data, with uncertainties via Markov-Chain Monte Carlo
timeOptTemplateSim

Simulations for timeOptTemplate
timeOptSimPwrLaw

Monte Carlo simulation for TimeOpt, using power law (1/f) noise
tones

Calculate all possible difference and combinations tones
timeOptTemplatePlot

TimeOptTemplatePlot: Generate summary figure for TimeOptTemplate analyses
timeOptSim

Monte Carlo simulation for TimeOpt
trimAT

Remove outliers from stratigraphic series
writeT

Write tab-delimited file
unbioturb

Bioturbation removal function following the approach of Liu et al (2021)
writeCSV

Write CSV file
trackPeak

A tool to interactively select points to track peak trajectories on plots
tune

Tune stratigraphic series
trim

Remove outliers from stratigraphic series
tracePeak

A tool to interactively trace peak trajectories on plots
trough

Identify minima of troughs in series, filter at desired threshold value
trackFreq

Frequency-domain minimal tuning: Use interactive graphical interface and sorting to track frequency drift
zoomIn

Dynamically explore cross-plot, zoom-in into specified region
xplot

Generate cross-plot with kernel density estimates on axes
wtMean

Ar/Ar Geochronology: calculate weighted mean age, age uncertainty, and other associated statistics/plots (with interactive graphics for data culling).
asm

Average Spectral Misfit
armaGen

Generate autoregressive moving-average model
bandpass

Bandpass filter stratigraphic series
astrochron-package

astrochron: A Computational Tool for Astrochronology
ar1etp

AR(1) + ETP simulation routine
autoPlot

Automatically plot multiple stratigraphic series, with smoothing if desired
ar1

Generate AR(1) surrogates
anchorTime

Anchor a floating astrochronology to a radioisotopic age
accum

Calculate geochemical proxy accumulation rates
arcsinT

Arcsine transformation of stratigraphic series