布兰登,
comment()并且attr()在这里很有用.这篇最近的帖子有一些非常好的信息.
从帮助页面comment():
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 Code Online (Sandbox Code Playgroud)
并str(x)返回:
> str(x)
int [1:3, 1:4] 1 2 3 4 5 6 7 8 9 10 ...
- attr(*, "comment")= chr [1:2] "This is my very important data from experiment #0234" "Jun 5, 1998"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
198 次 |
| 最近记录: |