R/pos.r

Defines functions pos

#######################################
##### set negative values to zero #####


pos <- function(x){
  
  x[x < 0] <- 0
  return(x)
  
}

Try the LSAfun package in your browser

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

LSAfun documentation built on Nov. 18, 2023, 1:10 a.m.