getComment: getComment

Description Usage Arguments Value Author(s) See Also Examples

Description

Extracts the comment from a MAgPIE-object

Usage

1
2
3
4
getComment(x)
       getComment(x) <- value
       setComment(object,nm)
       

Arguments

x,object

MAgPIE object

value,nm

A vector containing the comment.

Value

getComment returns the comment attached to a MAgPIE-object, NULL if no comment is present. setComment returns the magpie object with the modified comment.

Author(s)

Markus Bonsch

See Also

getRegions, getNames, getYears, getCPR, read.magpie, write.magpie, "magpie"

Examples

1
2
3
4
5
6
 a <- as.magpie(1)
 #returns NULL
 getComment(a)
 #set the comment
 getComment(a)<-c("bla","blubb")
 getComment(a)


Search within the magclass package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.