Subset an osmar object
## S3 method for class 'osmar'
subset(x, node_ids = NULL, way_ids = NULL,
relation_ids = NULL, ids = list(node_ids = node_ids, way_ids = way_ids,
relation_ids = relation_ids), ...)
An osmar object
Node ID vector
Way ID vector
Relation ID vector
A list composed of node_ids,
way_ids, relation_ids; for easier usage
with results from find_up and
An osmar object containing the specified
data("muc", package = "osmar")
id <- find(muc, node(tags(v == "Marienplatz")))
subset(muc, node_ids = id)
subset(muc, ids = find_up(muc, node(id)))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.