move_up: Move to parent in adjacency matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/MullerPlot.R

Description

Returns the corresponding Parent value. When there is no parent (i.e. at the top of the tree), returns the input Identity.

Usage

1
move_up(edges, identity)

Arguments

edges

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

identity

number or character string specifying daughter whose parent is to be found

Value

The Parent value.

Author(s)

Rob Noble, robjohnnoble@gmail.com

See Also

move_down move_right

Examples

1
2
edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6)
move_up(edges1, 3)

ggmuller documentation built on Sept. 5, 2019, 9:04 a.m.