R/clean_units.R

Defines functions clean_units

Documented in clean_units

#' Function to clean the units
#' 
#' @param x A variable with a unit 
#' @export

clean_units <- function(x){
  attr(x,"units") <- NULL
  class(x) <- setdiff(class(x),"units")
  x
}
jpablo91/Pabloverse documentation built on April 11, 2024, 2:54 p.m.