seq.units: seq method for units objects

Description Usage Arguments Details Examples

View source: R/misc.R

Description

seq method for units objects

Usage

1
2
3
## S3 method for class 'units'
seq(from, to, by = ((to - from)/(length.out - 1)),
  length.out = NULL, along.with = NULL, ...)

Arguments

from

see seq

to

see seq

by

see seq

length.out

see seq

along.with

see seq

...

see seq

Details

arguments with units are converted to have units of the first argument (which is either from or to)

Examples

1
2
3
4
seq(to = set_units(10, m), by = set_units(1, m), length.out = 5)
seq(set_units(10, m), by = set_units(1, m), length.out = 5)
seq(set_units(10, m), set_units(19, m))
seq(set_units(10, m), set_units(.1, km), set_units(10000, mm))

units documentation built on Feb. 5, 2022, 1:09 a.m.