the numeric without any units attributes, while preserving other
attributes like dimensions or other classes.
Arguments
x
an object with units metadata.
Details
Equivalent to units(x) <- NULL, or the pipe-friendly version
set_units(x, NULL), but drop_units will fail if the object has
no units metadata. Use the alternatives if you want this operation to succeed
regardless of the object type.
A data.frame method is also provided, which checks every column and
drops units if any.