comment

0th

Percentile

Query or Set a "comment" Attribute

These functions set and query a comment attribute for any R objects. This is typically useful for data.frames or model fits.

Contrary to other attributes, the comment is not printed (by print or print.default).

Assigning NULL or a zero-length character vector removes the comment.

Keywords
attribute
Usage
comment(x)
comment(x) <- value
Arguments
x

any R object

value

a character vector, or NULL.

See Also

attributes and attr for other attributes.

Aliases
  • comment
  • comment<-
Examples
library(base) # NOT RUN { x <- matrix(1:12, 3, 4) comment(x) <- c("This is my very important data from experiment #0234", "Jun 5, 1998") x comment(x) # }
Documentation reproduced from package base, version 3.6.1, License: Part of R 3.6.1

Community examples

sunnysunny at May 17, 2019 base v3.6.0

Great post. I was checking continuously this blog and I am impressed! Very useful info specifically the last part :) I care for such info much. I was looking for this certain information for a very long time. <a href="https://subway-games.com">subway surfers online</a>