Built Family nested tree parent / children relationship in R
I am working on families trees : I have adapted Bob Horton's example based on sqldf https://www.r-bloggers.com/exploring-recursive-ctes-with-sqldf/ My data : person father Guillou Arthur NA Cleach Marc NA Guillou Eric Guillou Arthur Guillou Jacques Guillou Arthur Cleach Franck Cleach Marc Cleach Leo Cleach Marc Cleach Herbet Cleach Leo Cleach Adele Cleach Herbet Guillou Jean Guillou Eric Guillou Alan Guillou Eric My results, descendants ordered by levels of "Guillou Arthur" (top person without father) : name parent_name level Guillou Arthur NA 1 Guillou Eric Guillou Arthur 2 Guillou Jacques