View source: R/sbtab_to_vfgen.R
paste_tag | R Documentation |
given a data.frame, this function returns one string per row, using the data.frame column names as attribute names of an XML tag.
paste_tag(Name, Attributes, indent = " ")
Name |
the nameof the printed tag (" <Name [...]>") |
Attributes |
the data.frame containing the tag attributes to print (as strings) |
indent |
the printed string will be prefixed with this |
a character vector, one tag per row of Attributes argument
x <- data.frame(Name="a",Type="b",Formula="c")
tag <- paste_tag("Example",x)
message(tag) # <Example Name="a" Type="b" Formula="c"/>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.