R/pow.R

Defines functions pow

pow <- function(x, a=2){
	if(!is.numeric(x) && !is.logical(x))
		stop('Please input a numeric number or vector, or at least input a logical value!\n')
	else
		return(x^a)
	}
zxkathy/powers documentation built on May 29, 2019, 2:29 p.m.