powered by
Check for paths from from to to
check_parents(parent_lookup, from, to, prev = NULL)
A list of paths or null if no path is found
A list of vectors
character
Should always be null when first called
parent_lookup <- list(M = "Am", Y = c("M", "Ay"), A = NULL, Am = "A", Ay = "A") check_parents(parent_lookup, "A", "Y")
Run the code above in your browser using DataLab