R/ditch.R

Defines functions ditch

Documented in ditch

#' replace any inf or nan with NULL from a dataframe
#' @export

ditch <- function(data) {
  ifelse(is.infinite(data) | is.nan(x), NA, data)
}
WeiquanLuo/stNet documentation built on Nov. 24, 2019, 5:11 p.m.