getFromComment {madrat} | R Documentation |
getFromComment
Description
Helper function extract a metadata comment
Usage
getFromComment(x, name)
Arguments
x |
object the metadata should be extracted from |
name |
name of the metadata to be extracted (e.g. unit) |
Author(s)
Jan Philipp Dietrich
Examples
x <- as.magpie(1)
getComment(x) <- c(" description: example description", " unit: kg")
getFromComment(x, "unit")
getFromComment(x, "description")
[Package madrat version 3.15.6 Index]