comment {base} | R Documentation |
Query or Set a"comment"
Attribute
Description
These functions set and query acommentattribute for anyR objects. This is typically useful fordata.frame
s or model fits.
Contrary to otherattributes
, thecomment
is notprinted (byprint
orprint.default
).
AssigningNULL
or a zero-length character vector removes thecomment.
Usage
comment(x)comment(x) <- value
Arguments
x | anyR object. |
value | a |
See Also
attributes
andattr
for other attributes.
Examples
x <- matrix(1:12, 3, 4)comment(x) <- c("This is my very important data from experiment #0234", "Jun 5, 1998")xcomment(x)
[Packagebase version 4.6.0Index]