[Rd] as.data.frame.character lacks nm= argument

From: William Dunlap <wdunlap_at_tibco.com>
Date: Thu, 13 Sep 2012 20:32:40 +0000


Is the following behavior with as.data.frame(nm=...) a bug? It is an inconsistency:

> as.data.frame(LETTERS[1:10], nm="FirstTenLetters")
Error in as.data.frame.vector(x, ..., nm = nm) :   formal argument "nm" matched by multiple actual arguments

nm= works for integer arguments:

> as.data.frame(1:10, nm="OneToTen")

   OneToTen

ink3">1         1
2         2
3         3
4         4
5         5
6         6
7         7
8         8
9         9
10       10

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 13 Sep 2012 - 20:36:13 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 Sep 2012 - 13:40:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive