R/cv.R

Defines functions cv

Documented in cv

cv <-
function(x,abs=TRUE,pc=TRUE) {
  result <- sd(x,na.rm=TRUE)/mean(x,na.rm=TRUE)
  if (abs==TRUE) {result <- abs(result)}
  if (pc==TRUE) {result <- 100*result}
  return(result)
}

Try the RVAideMemoire package in your browser

Any scripts or data that you put into this service are public.

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.