Apply a filter to one of the elements of a sem_graph object, and return the modified sem_graph. Uses the function subset.

filter_graph(x, subset, select, element = "edges", ...)

Arguments

x

An object of class sem_graph.

subset

logical expression indicating elements or rows to keep: missing values are taken as false.

select

Expression, indicating columns to select from a data frame.

element

Character. The element of the sem_graph to filter, defaults to "edges".

...

Arguments passed on to within.