| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/misc.R |
| 3 |
\name{seq.units} |
| 4 |
\alias{seq.units} |
| 5 |
\title{seq method for units objects} |
| 6 |
\usage{ |
| 7 |
\method{seq}{units}(from, to, by = ((to - from)/(length.out - 1)), |
| 8 |
length.out = NULL, along.with = NULL, ...) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{from}{see \link[base]{seq}} |
| 12 |
|
| 13 |
\item{to}{see \link[base]{seq}} |
| 14 |
|
| 15 |
\item{by}{see \link[base]{seq}} |
| 16 |
|
| 17 |
\item{length.out}{see \link[base]{seq}} |
| 18 |
|
| 19 |
\item{along.with}{see \link[base]{seq}} |
| 20 |
|
| 21 |
\item{...}{see \link[base]{seq}} |
| 22 |
} |
| 23 |
\description{ |
| 24 |
seq method for units objects |
| 25 |
} |
| 26 |
\details{ |
| 27 |
arguments with units are converted to have units of the first argument (which is either \code{from} or \code{to}) |
| 28 |
} |
| 29 |
\examples{ |
| 30 |
seq(to = set_units(10, m), by = set_units(1, m), length.out = 5) |
| 31 |
seq(set_units(10, m), by = set_units(1, m), length.out = 5) |
| 32 |
seq(set_units(10, m), set_units(19, m)) |
| 33 |
seq(set_units(10, m), set_units(.1, km), set_units(10000, mm)) |
| 34 |
} |