R/preabs.R

Defines functions preabs

Documented in preabs

##A R function for converting species matrix (wide data) to present-absence matrix
preabs<-function(widedata){
  widedata[is.na(widedata)]<-0
  widedata[widedata!=0]<-1
  return(widedata)
}

Try the forestHES package in your browser

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

forestHES documentation built on May 2, 2019, 7:31 a.m.