View source: R/resource_handling.R
createResourceStubsFromXml | R Documentation |
Creates XML stubs for interface and resource section from XML file structure
createResourceStubsFromXml(
filename,
id,
keyvals = NULL,
frequence = "DAILY",
rule = NULL,
xmlnode = NULL
)
filename |
name of the xml file |
id |
id for the resource |
keyvals |
named vector of column indices or names that act as key column |
frequence |
frequence attribute for the resource |
rule |
rule attribute for the resource |
xmlnode |
optional xml_node (otherwise xml will be read from filename) |
list of two strings ('interface' and 'resource')
stubs <- createResourceStubsFromXml(
filename = system.file("input","crop.xml",package="simplaceUtil"),
id="soil",
keyvals = c("vSoilType"=1)
)
cat(stubs$resource)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.