[R] R endnote entry

2011-11-30 Thread Matt Cooper
I know citation() gives the R citation to be used in publications. Has anyone put this into endnote nicely? I'm not very experienced with endnote, and the way I have it at the momeny the 'R Development Core Team' becomes R. D. C. T. etc. Cheers. __ R-he

Re: [R] Legend outside the plot? xpd?

2011-02-06 Thread Matt Cooper
On Sun, Feb 6, 2011 at 3:56 PM, David Winsemius wrote: > > Why not just use xpd=T inside legend()? > > > David Winsemius, MD > West Hartford, CT > > I had a feeling I'd look stupid after sending that. Thanks, works great. For some reason I thought if xpd would have to be set to T at the par() leve

[R] Legend outside the plot? xpd?

2011-02-05 Thread Matt Cooper
Hi All, BG: Will try be brief. I'd like 3 graphs on a page (below each other mfrow=c(3,1)), saved to pdf. The three plot data on the same subject so I'm having one legend, to the right of the center graph. I'm using mar=c(5,15,4,15) to bring the sides in so that the graphs are square and not stret

[R] Pure curiosity

2010-12-12 Thread Matt Cooper
Pure curiosity but does anyone know why '<-' and '=' generate different columning headers? > test <- data.frame(V1=c(1,2,3), V2=c(4,5,6)) > test V1 V2 1 1 4 2 2 5 3 3 6 > test <- data.frame(V1<-c(1,2,3), V2<-c(4,5,6)) > test V1c.1..2..3. V2c.4..5..6. 11

[R] ggplot - line_range help, second tier axis label

2010-12-08 Thread Matt Cooper
Hi All, Will try and keep brief, excuse the poor graphics skills, first time using GIMP. I would like to make the first one look (somewhat) like the second if possible. From: http://d.imagehost.org/0519/Screen_shot_2010-12-08_at_3_50_23_PM.png To here: http://d.imagehost.org/0293/Screen_shot_2010

Re: [R] Adding column to dataframe

2010-08-23 Thread Matt Cooper
take > processing the large data file at once; start with some pieces and > work up so that you know what to expect. > > On Wed, Aug 18, 2010 at 9:46 PM, Matt Cooper wrote: > > 2) My specific problem with this dataset. > > > > I am essentially trying to convert a d

[R] Adding column to dataframe

2010-08-18 Thread Matt Cooper
Two questions: 1) Are there any good R guides/sites with information/techniques for dealing with large datasets in R? (Large being ~2 mil rows and ~200 columns) 2) My specific problem with this dataset. I am essentially trying to convert a date and add it to a data frame. I imagine any 'data mani

[R] Longitudinal negative binomial regression - robust sandwich estimator standard errors

2010-07-14 Thread Matt Cooper
Hi All, I have a dataset, longitudinal in nature, each row is a 'visit' to a clinic, which has numerous data fields and a count variable for the number of 'events' that occurred since the previous visit. ~50k rows, ~2k unique subjects so ~25 rows/visits per subject, some have 50 some have 3 or 4