Learn R Programming

simecol (version 0.8-14)

fromtoby: Create Regular Sequence from 'from-to-by' Vector

Description

This function creates a sequence from named vectors with the names from, to and by.

Usage

fromtoby(times)

Arguments

times

A named vector with the names from, to and by.

Value

The appropriate vector with a sequence, generated by seq.

Details

Named vectors with from, to and by can be used in simecol to specify time steps.

See Also

seq

Examples

Run this code
# NOT RUN {
times <- c(from=1, to=5, by=0.1)
fromtoby(times)
# }

Run the code above in your browser using DataLab