Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dplyr-methods

Dplyr methods for silicate objects


Description

Filter an SC model, currently only dplyr::filter for SC is available.

Usage

## S3 method for class 'SC'
filter(.data, ...)

Arguments

.data

data object of class SC

...

passed to dplyr::filter

Details

Apply expressions as if used on the object table. See sc_object(x) for that form.

Currently all the vertices are still kept, so the model (and any plots) include the filtered edges as well as undifferentiated points. This is likely to change ...

Value

an SC() model, with some parts filtered out

Examples

library(dplyr)
sc <- SC(inlandwaters)
plot(filter(sc, Province == "Tasmania"))
plot(filter(sc, Province %in% c("Victoria", "South Australia", "New South Wales")))

plot(filter(SC(minimal_mesh), a == 1))

silicate

Common Forms for Complex Hierarchical and Relational Data Structures

v0.7.0
GPL-3
Authors
Michael D. Sumner [aut, cre], John Corbett [ctb] (the original inspiration), Simon Wotherspoon [ctb], Kent Johnson [dtc], Mark Padgham [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.