Learn R Programming

admixturegraph (version 1.0.2)

filter_on_leaves: Filter data so all W, X, Y and Z are leaves in the graph.

Description

Filter data so all W, X, Y and Z are leaves in the graph.

Usage

filter_on_leaves(data, graph)

Arguments

data
Data frame (or similar) object containing columns W, X, Y, and Z.
graph
Admixture graph.

Value

Data frame with rows where W, X, Y, or Z are not leaves are removed.