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 Dec. 7, 2017, 8:29 p.m.