[Rd] as.data.frame.list (PR#6782)

hosking at watson.ibm.com hosking at watson.ibm.com
Fri Apr 16 18:48:52 CEST 2004


Full_Name: J. R. M. Hosking
Version: 1.9.0
OS: Windows 2000
Submission from: (NULL) (129.34.20.23)


Browsing the code of as.data.frame.list, I see

  cn[m] <- paste("..adfl.", cn[m], sep = "")

and 5 lines later

  names(x) <- sub("^..adfl.", "", names(x))

It looks as though the latter should be

  names(x) <- sub("^\\.\\.adfl\\.", "", names(x))

This won't often matter, but perhaps one day somebody may type something like

  as.data.frame(list(row.names=1:2,foxglove=3:4,toadflax=5:6))



(R 1.9.0, Windows binary from CRAN)



More information about the R-devel mailing list