R/filter.region.r

Defines functions filter.region

  filter.region = function( x, region, index=T ) {
    area = region.decompose(region)
    i = which( as.character(x) %in% area )
    if (index) return(i) else return(x[i,])
  }
Beothuk/bio.spacetime documentation built on Oct. 18, 2017, 8:50 a.m.