Re: [R] which coefficients for a gam(mgcv) model equation?

2010-03-11 Thread Darren Norris
I have spent a few days trying to figure this from the reply out but am still stuck! I need the equation to reply to a request from a referee that was to: show the specific estimating equation associated with the fitted line. the model I am running is (I hope the data frame is not necessary as I

Re: [R] split a character variable into several character variable by a character

2009-04-11 Thread Darren Norris
just an alternative try gsub ?gsub from Francisco's example: dat-read.table(clipboard, header=T)#Read from your email gsub(-.*,,as.character(dat$popcode))# gives the BCPy01 part of column popcode gsub(.*-,,as.character(dat$popcode)) # gives the 01 part of column popcode then to add these

Re: [R] How do I set the Windows temporary directory in R?

2009-03-18 Thread Darren Norris
As far as I know setwd() does not influence where temporay files (TMPDIR, TMP, TEMP) are located - at least not for me on windows vista. As mentioned before setting environment variable should work. Also I carry R on a USB, so I don't want temporary files being written to the PC / laptop where I

Re: [R] How to read large file

2009-03-16 Thread Darren Norris
Try putting memory limit linux or mem.limits in the nabble help. Or type ?mem.limits in the R gui. Also have a look at: http://www.nabble.com/RAM%2C-swap%2C-Error%3A-cannot-allocate-vector-of-size%2C-Linux%3A-tt11680213.html#a11680213 Think you also need to check / understand how R deals with

Re: [R] ggplot2 - how to change location / position of wind rose axis labels?

2009-01-29 Thread Darren Norris
in the right position. I'll think about how to do this better in general. Regards, Hadley On Fri, Jan 23, 2009 at 4:39 PM, Darren Norris wrote: Dear R users, First just want to say thank you to all for developing such a wonderful software and packages. I need to produce a wind rose plot

[R] ggplot2 - how to change location / position of wind rose axis labels?

2009-01-23 Thread Darren Norris
Dear R users, First just want to say thank you to all for developing such a wonderful software and packages. I need to produce a wind rose plot. Tried with packages circular and plotrix and couldn't quite get what I want. Moved to package ggplot2 and it's going great. However stuck in how to

[R] can't merge zoo ojects and convert to ts (been trying for 2 days)

2008-03-06 Thread Darren Norris
I'm stuck, but am sure it can be done I just don't understand how. I have data in an irregular timeseries. I want to be able to use stl to visualise the data (see seasonal parts etc), so I need to change to regular series of class ts (I think). I am using 2 zoo objects one is regular and the

[R] How to plot fitted values from lmer (lme4 package)?

2008-02-14 Thread Darren Norris
I am modelling (at least trying to) the seasonal component of a variable using lmer. I think I am just about getting the hang of building the models but want to see what the fitted values look like. I need to plot 2 lines on the same graph - the original data ( copy of dataframe below) and the