path_string | R Documentation |
Print a hierarchical path string from a vector of names and levels
path_string(x, n)
x |
a vector of names |
n |
a vector of numbers with indentation level |
a character vector
Used by pmc_text
to print full path to subsection title
Chris Stubben
x <- c("carnivores", "bears", "polar", "grizzly", "cats", "tiger", "rodents")
n <- c(1, 2, 3, 3, 2, 3, 1)
path_string(x, n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.