Subsetting simple features (1)
Based on the sf documentation:
## S3 method for class 'sf'
x[i, j, ..., drop = FALSE, op = st_intersects]
i: row selection (as in data frames), or asfobject to work with theopargumentj: column selection (as in data frames)drop: defaultFALSE; ifTRUEdrop the geometry column (= return data frame)op: geometrical binary predicate function to apply wheniis a simple feature object
So we can subset using non-spatial criteria (row and column selection) or spatial criteria (another sf object).