getComment | R Documentation |
Extracts the comment from a MAgPIE-object
getComment(x)
getComment(x) <- value
setComment(object, nm = NULL)
x , object |
MAgPIE object |
value , nm |
A vector containing the comment. |
getComment returns the comment attached to a MAgPIE-object, NULL if no comment is present. setComment returns the magpie object with the modified comment.
getComment(x) <- value
: set comment
setComment()
: set comment
Markus Bonsch
getRegions
, getNames
,
getYears
, getCPR
, read.magpie
,
write.magpie
, "magpie"
a <- as.magpie(1)
#returns NULL
getComment(a)
#set the comment
getComment(a)<-c("bla","blubb")
getComment(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.