powered by
Extracts the comment from a MAgPIE-object
getComment(x)getComment(x) <- valuesetComment(object, nm = NULL)
getComment(x) <- value
setComment(object, nm = NULL)
getComment returns the comment attached to a MAgPIE-object, NULL if no comment is present. setComment returns the magpie object with the modified comment.
MAgPIE object
A vector containing the comment.
getComment(x) <- value: set comment
setComment(): set comment
setComment()
Markus Bonsch
getRegions, getNames, getYears, getCPR, read.magpie, write.magpie, "magpie"
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)
Run the code above in your browser using DataLab