Closed MichaelChirico closed 4 years ago
NOTES: not a bug: with an unnamed list it tries to create suitable names.
Audit (from Jitterbug): Thu Nov 6 12:36:30 2003 ripley changed notes Thu Nov 6 12:36:31 2003 ripley foobar Thu Nov 6 12:36:31 2003 ripley moved from incoming to feature&FAQ
From: "Francisco Vera" <veraf@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>> Hello,
My name is Francisco Vera. I have a small problem with the names produced by the function data.frame. If you run the code below, you will notice that the names of b1 are correct except for the first variable. This problem does not happen in the case of b2.
a1<-sapply(1:5,function(x) rmultinom(x,20,1:4/10)) a2<-sapply(2:6,function(x) rmultinom(x,20,1:4/10)) b1<-data.frame(a1) b2<-data.frame(a2)
The version of R I am using is 1.8.0. My OS is Windows XP
Thanks for your reviewing and possibly fixing this bug
Francisco Vera Department of Statistics University of South Carolina Columbia, SC 29208
METADATA