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 <[EMAIL PROTECTED]> 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@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. > ______________________________________________ R-help@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.