drop_quantities {quantities} | R Documentation |
Drop Units and Errors
Description
Drop Units and Errors
Usage
drop_quantities(x)
## S3 method for class 'quantities'
drop_units(x)
## S3 method for class 'quantities'
drop_errors(x)
## S3 method for class 'data.frame'
drop_quantities(x)
Arguments
x |
a |
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)
.
Value
the numeric without any units
or errors
attributes,
while preserving other attributes like dimensions or other classes.
[Package quantities version 0.2.2 Index]