Displaying 1 result from an estimated 1 matches for "pctx723".
2005 Nov 21
4
attributes of a data.frame
Dear all,
I noticed that a data.frame has four attributes:
- names
- row.names
- class
- variable.labels
While one can use the first three (i.e. names(foo) or class(foo)), the fourth
one can only be used via:
attributes(foo)$variable.labels
(which is kind of a tedious thing to type)
Is it or would be possible to simply use:
variable.labels(foo)
like the first three attributes?
I tried:
varlab