Re: [R] help sub setting data frame

2009-10-22 Thread Sean MacEachern
that's my best guess. Going back to your original > data you can try > >  dfb = chkPd[chkPd$PN %in% df$PN,] > > Hope it helps, > Ista > > On Thu, Oct 22, 2009 at 6:10 PM, Sean MacEachern > wrote: >> Hi Ista, >> >> I think I'm suffering long da

Re: [R] help sub setting data frame

2009-10-22 Thread Sean MacEachern
, > Comment in line below. > > On Thu, Oct 22, 2009 at 5:39 PM, Sean MacEachern > wrote: >> Hi, >> >> I'm running into a problem subsetting a data frame that I have never >> encountered before: >> >>> dim(chkPd) >> [1] 3213    6 >

[R] help sub setting data frame

2009-10-22 Thread Sean MacEachern
Hi, I'm running into a problem subsetting a data frame that I have never encountered before: > dim(chkPd) [1] 32136 > df = head(chkPd) > df PNWB Sire Dam MG SEX 601 1001 715349 61710 61702 67F 969 1001_1 511092 616253 615037 168F 986 1

Re: [R] Saving plots to file

2009-08-10 Thread Sean MacEachern
Thank you Cedric. That was a nice straight forward example that works great. Cheers, Sean On 8/10/09 11:45 AM, "Cedrick Johnson" wrote: > Try this: > > png(file="Desktop/hist1.png") > plot(glm1$residuals,gain,main = "Hist of residuals and gain"

[R] Saving plots to file

2009-08-10 Thread Sean MacEachern
Appologies if this has been addressed before, but I can't seem to find it in the help archives. I'm looking to do something like the following but it looks like save.plot is deprecated. save.plot(plot(glm1$residuals,gain,main = "Hist of residuals and gain"),file="Desktop/hist1.png") Thanks in a

[R] Beginner help with retrieving frequency and transforming a matrix

2008-03-28 Thread Sean MacEachern
Hi All, Just hoping some one can give me a hand with a problem... I have a dataframe (DF) with about 5 million entries that looks something like the following: >DF ID Cl Co BrdInd A AB AB 1 S-3 IND A BR_F BR_F01 1 0 0 2 S-3 IND A BR_F BR_F01 1 0 0 3 S-3 IND A BR_F BR_F01 1

[R] Multiple density plots

2008-03-10 Thread Sean MacEachern
Hi all, I'm interested in doing a multiple density plot on a number of columns in a dataframe. >DF lineA.1 lineA.2 lineB.1 lineB.2 r1 5.355354 6.665575 10.288498 11.74750 r2 3.643415 5.427600 11.407112 13.97065 r3 5.813674 6.438502 9.628871 11.57456 r4 5.241340 5.125049 10.456221