R: Element descriptors

node {osmar} | R Documentation

## Element descriptors

### Description

For getting OSM data and finding elements in an `osmar` object one needs to describe the data—here we provide a simple description language.

### Usage

      node(object)

      way(object)

      relation(object)

      ## Default S3 method:
     node(object)

      ## Default S3 method:
     way(object)

      ## Default S3 method:
     relation(object)

      attrs(condition)

      tags(condition)

      refs(condition)

      ## S3 method for class 'condition'
     relation(object)

      ## S3 method for class 'condition'
     relation(object)

      ## S3 method for class 'condition'
     relation(object)

### Arguments

`object` | The descriptor; see details
`condition` | Condition to describe the object

### See Also

`bbox`

### Examples

    ## Description by ID (*.default):
      node(1)
    way(1)
    relation(1)
    ## Description by condition (*.condition):
      node(tags(v == "Marienplatz"))
    ## Description by condition (*.condition):
      way(attrs(id == 17458))

[Package osmar version 1.1-7 Index]