Skip to contents

Produces an appropriate sequence of years between the minimum and maximum dating.

If they cannot be properly divided by the stepsize set beforehand, either three values are generated for objects that are dated to a range of more then 60 objects dated to a timespan of less or equal to 60 If they can be divided without residual, the normal sequence is returned. If there is a residual, the stepsize is modified depending on how large the residual is.

Usage

get.step.sequence(datmin = 0, datmax = 100, stepsize = 25)

Arguments

datmin

numeric value of the minimum dating of one object

datmax

numeric value of the maximum dating of one object

stepsize

the stepsize to be used

Value

sequence of steps to be created by [create.sub.objects()]

See also

[datsteps()], [create.sub.objects()]

Examples

min_year <- -494
max_year <- -334
sequence <- get.step.sequence(datmin = min_year, datmax = max_year, stepsize = 25)
sequence
#> [1] -494 -467 -442 -417 -392 -367 -334

min_year <- 1
max_year <- 100
sequence <- get.step.sequence(datmin = min_year, datmax = max_year, stepsize = 25)
sequence
#> [1]   1  21  41  60  80 100