[R] Memory allocation problem

2008-08-12 Thread Jamie Ledingham
dle by the time the loop reaches 170. Has anyone had any experience of this problem before? Is it possible to 'wipe' R's memory at the end of each loop - all results are plotted and saved or written to text file at the end of each loop so this may be the ideal solutio

[R] Quick fix formatting

2008-04-07 Thread Jamie Ledingham
Hi all, I'm hoping there's a quick fix for this. I have two data frames and am running a loop to match similar rows. However the matching is not working well, and I suspect it is because of the different formats of columns. For example, in col. 1 of dataframe 1 the nummbers are formatted as 1,

[R] Loop problem

2008-03-26 Thread Jamie Ledingham
Dear all, I have a problem with a loop, if anyone has any knowledge on these things I would appreciate some comments. The code below is designed to allow me to extract the top record of the data frame, and them remove rows from the data frame which have an index close to the extracted top record.

[R] Extracting maximums from a sliding window

2008-03-25 Thread Jamie Ledingham
inced it is even the right approach? I need to extract the whole line of data, not just the rainfall amount. Thanks Jamie Ledingham __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

[R] Finding Maximums in a sliding window time series

2008-03-19 Thread Jamie Ledingham
, for example by making sure that there are at least 2 days (48 hours) between each of the top 50 storm events. Can anyone suggest an approach I could use, or have you done this kind of work before? Thanks Jamie Ledingham __ R-help@r-project.org mailing

[R] selecting consecutive records over a threshold

2008-02-27 Thread Jamie Ledingham
thresholds but it is obviously important to be able to extract consecutive records to capture the whole storm. Can anybody help? Thanks Jamie Ledingham PhD Researcher University of Newcastle Upon Tyne __ R-help@r-project.org mailing list https://stat.ethz.

[R] selecting consecutive records over a threshold

2008-02-27 Thread Jamie Ledingham
thresholds but it is obviously important to be able to extract consecutive records to capture the whole storm. Can anybody help? Thanks Jamie Ledingham PhD Researcher University of Newcastle Upon Tyne __ R-help@r-project.org mailing list https://stat.ethz.

[R] Sliding Window Time Series Analysis - hourly rainfall

2008-01-24 Thread Jamie Ledingham
ent state it seems useless. If anyone could give me some pointers i'd be very pleased, I'm a bit new to the R language so any help appreciated. Thanks Jamie Ledingham __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel