Learn R Programming

ggmuller (version 0.5.6)

find_start_node: Move to top of adjacency matrix

Description

Returns the Parent value of the common ancestor.

Usage

find_start_node(edges)

Value

The Parent that is the common ancestor.

Arguments

edges

Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity"

Author

Rob Noble, robjohnnoble@gmail.com

Examples

Run this code
edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6)
find_start_node(edges1)

Run the code above in your browser using DataLab