Re: [R] Data aggregation question

2011-07-29 Thread David Warren
Hi all, table() did the trick, and very efficiently, too! Thanks for the advice, Dave On Thu, Jul 28, 2011 at 5:39 PM, David Winsemius wrote: > > On Jul 28, 2011, at 4:24 PM, David Warren wrote: > > Hi all, >> >>I'm working with a sizable dataset that

[R] Data aggregation question

2011-07-28 Thread David Warren
Hi all, I'm working with a sizable dataset that I'd like to summarize, but I can't find a tool or function that will do quite what I'd like. Basically, I'd like to summarize the data by fully crossing three variables and getting a count of the number of observations for every level of that 3

Re: [R] Odd graphics output problem

2010-09-16 Thread David Warren
ne, the > result is automatically printed, but in source() or inside your own > functions you will need an explicit print() statement. > > On Thu, Sep 16, 2010 at 10:34 AM, David Warren < > davideugenewar...@gmail.com> wrote: > >> Hi all, >> >> I'm havin

[R] Odd graphics output problem

2010-09-16 Thread David Warren
Hi all, I'm having trouble saving graphics output from within a loop, and I can't figure out a solution. I'd like to produce and save lots of individual plots for inspection, so I set up the following script: library( lattice ) wd = "~/Documents/PPM/" ppm = read.table( paste( wd, "ppm_summa

[R] Seeking guidance on MLE scaling

2010-07-13 Thread David Warren
Hi all, I'm trying out R's optimization functions (nlm() and optim()) in order to obtain parameter estimates for a combination of distributions. I've got my likelihood function, and optim() is happy to provide estimates (nlm() less so), but I'm concerned that uneven parameter scaling may be

Re: [R] Lattice plotting question

2010-06-27 Thread David Warren
100)) ? > > On 26 June 2010 01:42, David Warren wrote: > > Hi all, > > > > I'm working on some plots using lattice (R 2.10.1), and have entered > > the polish phase. I've produced a satisfactory pair of xyplots ( > > http://imgur.com/EyXGi.png), but wo

[R] Lattice plotting question

2010-06-25 Thread David Warren
Hi all, I'm working on some plots using lattice (R 2.10.1), and have entered the polish phase. I've produced a satisfactory pair of xyplots ( http://imgur.com/EyXGi.png), but would like to align the y-axes of the top and bottom plots. I assume that I need to adjust axis padding or something