R/rel.cond.R

Defines functions rel.cond

Documented in rel.cond

rel.cond <- function(x,R,method="A"){
  metodi <- c("A","B")
  method <- pmatch(method, metodi)
  if (is.na(method))
    stop("not valid method")
  if (method==1){
    x1 <- (x-R)/(4-R)
    x1
  }
  else{
    x1 <- (x-R)/(4*(1-R))
    x1
  }
}

Try the Biodem package in your browser

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

Biodem documentation built on Jan. 5, 2021, 5:08 p.m.