Learn R Programming

magclass (version 3.74)

getComment: getComment

Description

Extracts the comment from a MAgPIE-object

Usage

getComment(x) getComment(x) <- value setComment(object,nm)

Arguments

x,object
MAgPIE object
value,nm
A vector containing the comment.

Value

See Also

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

Examples

Run this code
 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