find_div_pairs | R Documentation |
Make paired labels for opening and closing div tags
find_div_pairs(divs, close = div_close_regex())
close |
the regex for a valid closing tag |
nodes |
a character vector of div open and close tags |
an integer vector with pairs of labels for each opening and closing tag. Note that the labels are produced by doing a cumulative sum of the node depths.
Other div:
clean_div_tags()
,
find_between_tags()
,
get_divs()
,
label_div_tags()
,
label_pairs()
,
make_div()
,
make_div_pairs()
,
replace_with_div()
nodes <- c(
"<div class='1'>",
"<div class='2'>" ,
"</div>",
"<div class='2'>",
"<div class='3'>",
"</div>",
"</div>",
"</div>")
pegboard:::find_div_pairs(nodes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.