Learn R Programming

quantities (version 0.2.2)

drop_quantities: Drop Units and Errors

Description

Drop Units and Errors

Usage

drop_quantities(x)

# S3 method for quantities drop_units(x)

# S3 method for quantities drop_errors(x)

# S3 method for data.frame drop_quantities(x)

Value

the numeric without any units or errors attributes, while preserving other attributes like dimensions or other classes.

Arguments

x

a quantities object.

Details

drop_quantities is equivalent to quantities(x) <- NULL or set_quantities(x, NULL, NULL). drop_units is equivalent to units(x) <- NULL or set_units(x, NULL). drop_errors is equivalent to errors(x) <- NULL or set_errors(x, NULL).