Examples for 'base::comment'


Query or Set a '"comment"' Attribute

Aliases: comment comment<-

Keywords: attribute

### ** Examples

x <- matrix(1:12, 3, 4)
comment(x) <- c("This is my very important data from experiment #0234",
                "Jun 5, 1998")
x
     [,1] [,2] [,3] [,4]
[1,]    1    4    7   10
[2,]    2    5    8   11
[3,]    3    6    9   12
comment(x)
[1] "This is my very important data from experiment #0234"
[2] "Jun 5, 1998"                                         

[Package base version 4.2.3 Index]