R/pow.R

#pow <- function(x, a=2) x^a

pow <- function(x, a, plot_it) {
  res <- x^a
  if (plot_it) print(ggplot2::qplot(x, res))
  return(res)
}
bcahn7/STAT547M-hw09-powers documentation built on May 30, 2019, 4:15 p.m.