[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 figu

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

2011-05-25 Thread Mathew Brown
,", col.names=FALSE ) # # I, then, read the data back into a new file "new.data" # new.data<- read.csv("c:/rdata/mystuff.csv", sep=",", header=FALSE) #==

[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 splitt

[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 2

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 http://www.R-project.org/po

[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 http://www.R-p

Re: [R] permil symbol linux

2011-07-06 Thread mathew brown
ode to work. thanks On Wed, 6 Jul 2011 09:45:49 +0100 (BST) Prof Brian Ripley 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? > &

Re: [R] permil symbol linux

2011-07-06 Thread mathew brown
of the helpers here (and for > all the work that went 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)",

[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/A201132118

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,

[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 the

Re: [R] block averaging data frames

2011-12-19 Thread Mathew Brown
>> >> # add the time back >> newData$timestamp<- breaks[as.integer(rownames(newData))] >> newData >LwTempDownelling LwDownwelling LwDownwelling_min LwDownwelling_max > LwTempUpwelling > 1 17.39667 24.7 16.56667 31.60 > 1

Re: [R] block averaging data frames

2011-12-19 Thread Mathew Brown
Downwelling_max LwTempUpwelling 1 17.39667 24.7 16.56667 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 Br

[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 To

[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)