Re: [R] list to dataframe conversion-testing for identical

2012-07-01 Thread arun
Thanks again, A.K.   - Original Message - From: David L Carlson To: 'arun' ; 'R help' Cc: Sent: Sunday, July 1, 2012 5:09 PM Subject: RE: [R] list to dataframe conversion-testing for identical Yes it does have something to do with the representation of floating point numbers.

Re: [R] list to dataframe conversion-testing for identical

2012-07-01 Thread arun
HI All, Thanks for your replies. A.K. - Original Message - From: David Winsemius To: arun Cc: R help Sent: Sunday, July 1, 2012 6:31 PM Subject: Re: [R] list to dataframe conversion-testing for identical On Jul 1, 2012, at 5:09 PM, David L Carlson wrote: > Yes it does h

Re: [R] list to dataframe conversion-testing for identical

2012-07-01 Thread David Winsemius
:3) dat1 <- data.frame(listdat1) -- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 -----Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On

Re: [R] list to dataframe conversion-testing for identical

2012-07-01 Thread Rui Barradas
Hello, But > all.equal(dat1,dat2) [1] TRUE So I guess it does have to do with floating-point equality, all.equal uses .Machine$double.eps. (Which could return FALSE on ocasions we would expect TRUE, when, for instance, the tolerance could/should be .Machine$double.eps^0.5.) Rui Barradas E

Re: [R] list to dataframe conversion-testing for identical

2012-07-01 Thread David L Carlson
ation, TX 77843-4352 > -----Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of arun > Sent: Sunday, July 01, 2012 12:56 PM > To: R help > Subject: [R] list to dataframe conversion-testing for identical > > HI

[R] list to dataframe conversion-testing for identical

2012-07-01 Thread arun
HI R help, I was trying to get identical data frame from a list using two methods. #Suppose my list is: listdat1<-list(rnorm(10,20),rep(LETTERS[1:2],5),rep(1:5,2)) #Creating dataframe using cbind dat1<-data.frame(do.call("cbind",listdat1)) colnames(dat1)<-c("Var1","Var2","Var3") #Second datafram