move_up | R Documentation |
Returns the corresponding Parent value. When there is no parent (i.e. at the top of the tree), returns the input Identity.
move_up(edges, identity)
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 |
The Parent value.
Rob Noble, robjohnnoble@gmail.com
move_down
move_right
edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6) move_up(edges1, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.