powered by
"comment"
These functions set and query a comment attribute for any R objects. This is typically useful for data.frames or model fits.
data.frame
Contrary to other attributes, the comment is not printed (by print or print.default).
attributes
comment
print
print.default
Assigning NULL or a zero-length character vector removes the comment.
NULL
comment(x) comment(x) <- value
any R object
a character vector, or NULL.
character
attributes and attr for other attributes.
attr
x <- matrix(1:12, 3, 4) comment(x) <- c("This is my very important data from experiment #0234", "Jun 5, 1998") x comment(x)
Run the code above in your browser using DataLab