Learn R Programming

quantities (version 0.1.2)

errors: Handle Measurement Uncertainty on a Numeric Vector

Description

Set or retrieve measurement uncertainty to/from numeric vectors (extensions to the errors package for quantities and units objects).

Usage

# S3 method for quantities
errors(x)

# S3 method for units errors(x)

# S3 method for mixed_units errors(x)

# S3 method for quantities errors(x) <- value

# S3 method for units errors(x) <- value

# S3 method for mixed_units errors(x) <- value

# S3 method for quantities set_errors(x, value = 0)

# S3 method for units set_errors(x, value = 0)

# S3 method for mixed_units set_errors(x, value = 0)

# S3 method for quantities errors_max(x)

# S3 method for quantities errors_min(x)

Arguments

x

a numeric object, or object of class errors.

value

a numeric vector of length 1 or the same length as x.

See Also

errors.