[R] names.data.frame?

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Thu Nov 4 17:36:30 CET 2021


" Running `methods(names)` lists quite a few methods, ..."

Depending on what packages you have loaded of course.

Bert

On Thu, Nov 4, 2021 at 7:43 AM Duncan Murdoch <murdoch.duncan using gmail.com>
wrote:

> 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
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list