[R] names.data.frame?
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Thu Nov 4 15:43:14 CET 2021
On 04/11/2021 10:38 a.m., Jorgen Harmse via R-help wrote:
> Can someone please explain what Leonard Mada is trying to do? As far as I know, names is not generic and there is no names.data.frame because it’s not needed. (A data.frame seems to be just a named list with some extra functionality that depends on every element being a vector with the same length and some overloading of list functions to ensure that that is always true.) The other answers confused me more.
According to the help page, names() is a generic function. Running
`methods(names)` lists quite a few methods, but you're right, there's no
names.data.frame because it's not needed, the default method is fine.
Duncan Murdoch
More information about the R-help
mailing list