Select a subset of locations from a gData object by index, logical
vector, or node name. The @coords, @nodes.id, and @data slots are all
subsetted consistently.
Arguments
- x
a valid
gDataobject.- i
indices for subsetting locations — a logical vector, integer indices, or character node names. If missing, all locations are kept.
- j
indices for subsetting data columns. If missing, all columns are kept.
- ...
additional arguments passed to the
[method of@data.- drop
logical passed to the
[method of@data. Defaults toFALSE.
Value
A gData object with @coords, @nodes.id, and @data all
subsetted consistently.
See also
Other basic_methods:
subset-gGraph

