Re: [R] Matrix to data frame conversion

2012-11-14 Thread MacQueen, Don
So, if you have duplicate row.names, get rid of them. Try rownames(comb_model0) <- NULL as.data.frame(comb_model0) -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 11/12/12 7:45 AM, "PavloEs" wrote: >I have a matri

Re: [R] Matrix to data frame conversion

2012-11-12 Thread David L Carlson
avloEs > Sent: Monday, November 12, 2012 1:09 PM > To: r-help@r-project.org > Subject: Re: [R] Matrix to data frame conversion > > May be I have not clearly explained my problem. Le me try it again. My > problem was with the matrix "comb_model0" . I have tried to conve

Re: [R] Matrix to data frame conversion

2012-11-12 Thread PavloEs
May be I have not clearly explained my problem. Le me try it again. My problem was with the matrix "comb_model0" . I have tried to convert it to a data frame (xx), but could not succeed . As a result I have exported it to a test.csv file and re-imported it. Data frame test is the product of th

Re: [R] Matrix to data frame conversion

2012-11-12 Thread arun
HI, I also have no trouble in reading the example data you gave, which BTW do not have any duplicate rownames.   I guess there must be some rows in the original dataset that must be repeated.  For example: comb_model<-read.table(text="    Estimate Std.Error tvalue   

Re: [R] Matrix to data frame conversion

2012-11-12 Thread Rui Barradas
Hello, I'm unable to reproduce your error, removing the space in "Std. Error" and changing "t value" to "t.value" the following read in as data.frame with no problems. x <- read.table(text=" Estimate Std.Error t.value Pr(>|t|) (Intercept)