Description Usage Arguments Value Author(s) Examples
Print a hierarchical path string from an ordered list of names and levels
1 | path.string(x, n)
|
x |
ordered list of names |
n |
indentation level |
a character vector
Chris Stubben
1 2 3 4 5 6 7 8 9 10 11 12 13 | x <- c("carnivores", "bears", "polar", "grizzly", "cats", "tiger", "rodents")
n <- c(1,2,3,3,2,3,1)
path.string(x, n)
## OR section titles
## Not run:
id <- "PMC2612704"
doc <- pmcOAI(id)
x <- xpathSApply(doc, "//body//sec/title", xmlValue)
n <- xpathSApply(doc, "//body//sec/title", function(y) length(xmlAncestors(y) ))
path.string(y,n)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.