[R] removing data based on date pairs in a separate data frame

2016-02-29 Thread Thomas Barningham
this is to flag bad atmospheric data between times that there were known instrumentation issues. Thanks in advance, Thomas -- Thomas Barningham Centre for Ocean and Atmospheric Sciences School of Environmental Sciences University of East Anglia Norwich Research

Re: [R] Run script automatically on several input files in the directory and produce separate outputs?

2014-12-05 Thread Thomas Barningham
dy of data. > ~ John Tukey > > -Oorspronkelijk bericht- > Van: R-help [mailto:r-help-boun...@r-project.org] Namens Thomas Barningham > Verzonden: vrijdag 5 december 2014 14:41 > Aan: r-help@r-project.org > Onderwerp: [R] Run script automatically on several input files in the

[R] Run script automatically on several input files in the directory and produce separate outputs?

2014-12-05 Thread Thomas Barningham
e how to approach this. I presume it's some sort of loop function, but i've never implemented one of these before - any advice would be greatly appreciated! Thanks in advance! Thomas -- Thomas Barningham Centre for Ocean and Atmospheric Sciences School of Environmental Sciences Univ

Re: [R] Writing "monthly" .txt or .csv files from a long time series

2014-06-18 Thread Thomas Barningham
-161.92 1999-06-25 01:31:57 1999-06-01 > lapply(split(input, input$mon), function(x) + write.table(x, file=as.character(input$mon[1]))) $`1999-06-01` NULL $`1999-07-01` NULL The $ "date" NULL then repeats for all months. Many thanks Thomas On Tue, Jun 17, 2014 at 9:35 PM, David Winsemius w

[R] Writing "monthly" .txt or .csv files from a long time series

2014-06-17 Thread Thomas Barningham
t;manually" in excel, which would take a long time. I'm hoping there's a neat bit of code to do this. Many thanks Thomas -- Thomas Barningham Centre for Ocean and Atmospheric Sciences School of Environmental Sciences University of East Anglia Norwich Rese

[R] Time Series STL

2014-01-10 Thread Thomas Barningham
]* *CO2 <- BHD[,28]* (end of code) What I want to do is take the objects defined above (APO, CO2, O2) and perform stl analyses on them, but I need to convert them to time series objects first based on the information in the yearfrac object. How do I go about this?! Thanks in advance Barney