check_compliant_node | R Documentation |
Check that Node object names are compliant
check_compliant_node(node)
node |
the Node object, or a dataframe ready to be parsed by |
node if it is compliant, else an Error with the column names to fix
library(dplyr)
library(data.tree)
data(starwars)
starwars_tree <- starwars %>%
mutate(pathString = paste("tree", species, homeworld, `name`, sep = "/"))
# pre as.Node() check
try(check_compliant_node(starwars_tree))
# post as.Node() check
check_compliant_node(as.Node(starwars_tree))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.