View source: R/getFromComment.R
getFromComment | R Documentation |
Helper function extract a metadata comment
getFromComment(x, name)
x |
object the metadata should be extracted from |
name |
name of the metadata to be extracted (e.g. unit) |
Jan Philipp Dietrich
x <- as.magpie(1)
getComment(x) <- c(" description: example description", " unit: kg")
getFromComment(x, "unit")
getFromComment(x, "description")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.