Learn R Programming

simecol (version 0.9-3)

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)

Value

The appropriate vector with a sequence, generated by seq.

Arguments

times

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

Details

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

See Also

Examples

Run this code
times <- c(from=1, to=5, by=0.1)
fromtoby(times)

Run the code above in your browser using DataLab