sum_units: Sum units Takes a vector of units and sums them and returns a...

Description Usage Arguments Value Examples

View source: R/tweaked_functions.R

Description

Sum units Takes a vector of units and sums them and returns a new unit vector with the same units.

Usage

1

Arguments

x

Unit vector

Value

Sum as a unit

Examples

1
2
3
library(ggplot2)
x <- unit(c(1,2,3,4), units = "cm")
sum_units(x)

joelgsponer/waRRior2 documentation built on Feb. 22, 2020, 3:34 a.m.