elco-quantities | R Documentation |
elco
objectsHandling quantities in elco
objects
## S3 method for class 'elco' quantities(x) ## S3 replacement method for class 'elco' quantities(x) <- value ## S3 method for class 'elco' set_quantities( x, unit, errors = 0, ..., mode = units_options("set_units_mode") ) ## S3 method for class 'elco' errors(x) ## S3 replacement method for class 'elco' errors(x) <- value ## S3 method for class 'elco' set_errors(x, value = 0) ## S3 method for class 'elco' drop_errors(x) ## S3 method for class 'elco' units(x) ## S3 replacement method for class 'elco' units(x) <- value ## S3 method for class 'elco' set_units(x, value, ..., mode = units_options("set_units_mode"))
x |
a numeric object, or object of class |
value |
a list of two components: an object of class |
unit |
a |
errors |
a numeric vector of length 1 or the same length as |
... |
passed on to other methods. |
mode |
if |
## quantities # quantities.elco quantities(elco::chno$C) # `quantities.elco<-` x <- elco::chno$C quantities(x) <- list("g/g", 0.1) # set_quantities set_quantities(elco::chno$C, unit = "g/g", errors = 0.1, mode = "standard") ## errors # `errors.elco` errors::errors(elco::chno$C) # `errors.elco<-` x <- elco::chno$C errors::errors(x) <- 0.1 # set_errors set_errors(elco::chno$C, value = 0.1) # drop_errors.elco errors::drop_errors(elco::chno$C) ## units # units.elco units(elco::chno$C) # `units.elco<-` x <- elco::chno$C units(x) <- "g/g" # set_units set_units(elco::chno$C, value = "g/g", mode = "standard")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.