Learn R Programming

quantities (version 0.2.2)

c.quantities: Combine Values into a Vector or List

Description

S3 method for quantities objects (see c).

Usage

# S3 method for quantities
c(...)

Arguments

...

objects to be concatenated. All NULL entries are dropped before method dispatch unless at the very beginning of the argument list.

Examples

Run this code
c(set_quantities(1, m/s, 0.2), set_quantities(30, km/h, 0.1))

Run the code above in your browser using DataLab