R/timetostratpointcont.R

Defines functions timetostratpointcont

Documented in timetostratpointcont

timetostratpointcont <-
function(x,xdep,ydep){
  stopifnot(all(is.finite(x)),all(is.finite(xdep)),all(is.finite(ydep)),is.unsorted(xdep,strictly = TRUE)==FALSE,length(xdep)==length(ydep))
  ll=pointtransform(points=x,xdep=xdep,ydep=ydep,direction='time to height',depositionmodel='piecewise linear deposition rate')
  outlist=list(height=ll$height,age=ll$time)
  return(outlist)
}

Try the DAIME package in your browser

Any scripts or data that you put into this service are public.

DAIME documentation built on March 13, 2020, 2:54 a.m.