R/square.R

##Generic function for the square of numeric objects

square <- function(x, na.rm = FALSE){
  if(na.rm){
    x = na.omit(x)
  }
  x^2
}
ClaudiaFaltermeier/square documentation built on May 13, 2019, 4:49 p.m.