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,])
  }
jae0/snowcrab documentation built on Nov. 6, 2024, 10:13 p.m.