[R] no applicable method for "names"

John Kane jrkrideau at yahoo.ca
Thu Nov 15 15:56:06 CET 2007


Actually names(z) works for me. 

More seriously I don't seem to have a problem with XP
and 2.6.0.  It may be a slightly wonky installation. 
You might want to try a re-install and see what
happens.


--- Schiller Judith 1541 EB
<Judith.Schiller at erstebank.at> wrote:

> hi,
> 
> after installing R-2.6.0 the function "names"
> doesn't work anymore on my
> windows xp machine. 
> for example for a simple vector i get
> 
> > z <- 1:3
> > names(x)
> Error in UseMethod("name"): no applicable method for
> "names"
> 
> ... instead of NULL. the same is true for lists and
> dataframes. attr(z,
> "names") is a workaround, but i don't want to change
> all my functions.
> 
> is this a know bug? thanks for any comments, 
> judith schiller 
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>



More information about the R-help mailing list