tag: Build an 'oshExListTag' condition

Description Usage Arguments Details Examples

Description

The function is used to create an oshExListTag condition that can be used by the osh_filter function.

Usage

1

Arguments

...

One or more key-value pairs binary operators. See 'Details' below for a description of each operator.

Details

The tag function can be used to create one or multiple conditions bundeled together within an oshExList-class object. tag can be also used to filter data based on numeric relations (i.e. inequalities) Use concatenate to create a filter for a key-value pair (see examples).

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  # Filter highway of type primary only
  cond <- tag(highway %eq% primary)

  # Filter only buildings with house number equal or higher than 30
  # Use k %eq% ".", to get all objects with the k tag.
  cond <- tag(building %eq% ".", addr:housenumber %meq% 30)
  
## End(Not run)

dof1985/OSHEX documentation built on May 28, 2019, 3:36 p.m.