slice {divDyn} | R Documentation |
Discretization of continuous time dimension - slicing
Description
The function will slices time with a given set of boundaries and produce a time scale object if desired.
Usage
slice(x, breaks, offset = 0, ts = TRUE, revtime = TRUE)
Arguments
x |
( |
breaks |
( |
offset |
( |
ts |
( |
revtime |
( |
Details
Due to stratigraphic constraints, we can only process deep time data, when it is sliced to discrete bins. It is suggested that you do this separately for most of your analyses. This function is also used by the codedivDyn function when age
entries are provided.
Value
Either of new entries and levels or time scale.
Examples
y<- runif(200, 0,100)
au <- slice(y, breaks=seq(0, 100, 10))
withOut <- slice(y, breaks=seq(0, 100, 10), ts=FALSE)