Learn R Programming

datplot (version 1.1.1)

get.step.sequence: Calculate the sequence of dating steps

Description

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)

Value

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

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

See Also

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

Examples

Run this code
min_year <- -494
max_year <- -334
sequence <- get.step.sequence(datmin = min_year, datmax = max_year, stepsize = 25)
sequence

min_year <- 1
max_year <- 100
sequence <- get.step.sequence(datmin = min_year, datmax = max_year, stepsize = 25)
sequence

Run the code above in your browser using DataLab