[R] nls issue

2012-01-19 Thread Mathew Brown
Hello, I'm trying to make a non-linear regression using the attached data and this model. When I run it I get the following message: Error in nls(y ~ 1/(a + w * x), data = df, start = list(a = 1, w = 1), : singular gradient mod - nls(y~1/(a+w*x),data=df,start=list(a=1,w=1),trace = TRUE)

[R] block averaging data frames

2011-12-19 Thread Mathew Brown
Hi there, This seems like it should be simple. I have a data frame of climate data sampled every 10 min. I want to average the entire data frame into 30 min values (i.e., one value for each half hour). Functions like running.mean give me a moving average but I want to reduce the size of

Re: [R] block averaging data frames

2011-12-19 Thread Mathew Brown
2 17.31000 41.0 35.15000 43.05 17.81000 timestamp 1 2011-11-01 00:00:00 2 2011-11-01 00:30:00 On Mon, Dec 19, 2011 at 4:28 AM, Mathew Brown mathew.br...@forst.uni-goettingen.de wrote: Hi there, This seems like it should be simple

Re: [R] block averaging data frames

2011-12-19 Thread Mathew Brown
31.60 17.90333 2 17.31000 41.0 35.15000 43.05 17.81000 timestamp 1 2011-11-01 00:00:00 2 2011-11-01 00:30:00 On Mon, Dec 19, 2011 at 4:28 AM, Mathew Brown mathew.br...@forst.uni-goettingen.de wrote: Hi there, This seems like

[R] Extracting from zip, removing certain file extensions

2011-11-29 Thread Mathew Brown
Hi there, I'm running R on windows 7 with Rstudio. Everyday I receive a zip file where a bunch of half-hourly files are zipped together. I then use xx=unzip(ind) to get xx, which consists of : [1] ./2011/A20112961503.flx ./2011/A20112961503.log ./2011/A20113211730.slt ./2011/A20113211800.slt

Re: [R] Extracting from zip, removing certain file extensions

2011-11-29 Thread Mathew Brown
Great, many thanks. On 11/29/2011 3:09 PM, Duncan Murdoch wrote: On 29/11/2011 8:36 AM, Mathew Brown wrote: Hi there, I'm running R on windows 7 with Rstudio. Everyday I receive a zip file where a bunch of half-hourly files are zipped together. I then use xx=unzip(ind) to get xx, which

[R] help

2011-09-24 Thread Mathew Brown
Mathew Brown Institute of Bioclimatology University of Göttingen Büsgenweg 2 37077 Göttingen, Germany t: +49 551 39 9359 mathew.br...@forst.uni-goettingen.de On 9/24/2011 6:00 PM, r-help-requ...@r-project.org wrote: Send R-help mailing list submissions to r-help@r-project.org

[R] permil symbol linux

2011-07-06 Thread mathew brown
Hi, I'm trying to figure out how to make a plot with ylab showing the permil symbol. Anyone know how to do this? Thanks -- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] permil symbol linux

2011-07-06 Thread mathew brown
rip...@stats.ox.ac.uk wrote: On Wed, 6 Jul 2011, mathew brown wrote: Hi, I'm trying to figure out how to make a plot with ylab showing the permil symbol. Anyone know how to do this? Yes. Now, it you would follow the posting guide and give the 'at a minimum' information you were

Re: [R] permil symbol linux

2011-07-06 Thread mathew brown
into making this possible in R). On Wed, 6 Jul 2011, mathew brown wrote: Good point. Here is the code plot(dat$timestamp,dat$delta_18_16, ylab=, xlab=(min), tck=0.05, col=blue) mtext(side=2, line=1.5, expression(*delta*^18*O [\u0089]), cex=1, adj=0.5) I'm still not sure how

[R] load seven files (named by date) at a time

2011-06-01 Thread Mathew Brown
Hello, I'm trying to load a weeks worth of files that are each named by the date they were creaded (e.g., 20110601.RData), starting with the day before today so if today is June 1, I would like to load 20110525- 20110531. The script was working until today, and x= 20110593 20110594 20110595

Re: [R] Odp: load seven files (named by date) at a time

2011-06-01 Thread Mathew Brown
Awesome, thanks a lot! On 6/1/2011 11:22 AM, Petr PIKAL wrote: seq(as.Date(time)-7, as.Date(time)-1, by=1) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] split data frame and manipulate

2011-05-26 Thread Mathew Brown
Hello, I would like to split the attached data frame based on the DATE variable. I'm having a real problem doing this. I am able to split iso-read.table(datuh.dat, header=TRUE, sep=, dec=.) #load mylist=split(iso,iso$DATE) #split str(mylist) #result seems a bit odd However, after splitting

Re: [R] plotting single variables common to multiple data frames

2011-05-25 Thread Mathew Brown
Hi John, First off, thanks again for your help with this. Much appreciated. I've attached a file of the original data (yes, as you can see there are header names). These hour long files are zipped together on a computer (which is actually an analyzer) and sent each morning to a server. I then

[R] plotting single variables common to multiple data frames

2011-05-24 Thread Mathew Brown
Hello all, I have files (see attached) which are created daily. I want to load about a weeks worth of them (7 daily files) and plot a weeks worth of one variable together. So one variable name is delta_D_H. I would like to plot this variable from all 7 days on one plot. I'm having trouble