R/squared.R

#' Square of Vector Elements
#'
#' @param x a numeric
#'
#' @return a numeric
#' @export
#'
#' @examples
#' squared(2) # 4
squared <- function(x) {
  x^2
}
PhanitSaing/Phanit documentation built on May 25, 2019, 1:20 p.m.