Re: [R] aggregating data with quality control

2024-08-31 Thread avi.e.gross
urday, August 31, 2024 7:15 AM To: r-help@R-project.org Subject: [R] aggregating data with quality control Dear R-list users, I deal with semi-hourly data from automatic meteorological stations. They have to pass a manual validation; suppose that status = "C" stands for correct and s

Re: [R] aggregating data with quality control

2024-08-31 Thread Stefano Sofia
Sofia Oggetto: Re: [R] aggregating data with quality control [Non ricevi spesso messaggi di posta elettronica da ikry...@disroot.org. Per informazioni sull'importanza di questo fatto, visita https://aka.ms/LearnAboutSenderIdentification.] � Sat, 31 Aug 2024 11:15:10 + Ste

Re: [R] aggregating data with quality control

2024-08-31 Thread Rui Barradas
Às 12:15 de 31/08/2024, Stefano Sofia escreveu: Dear R-list users, I deal with semi-hourly data from automatic meteorological stations. They have to pass a manual validation; suppose that status = "C" stands for correct and status = "D" for discarded. Here a simple example with "Snow height"

Re: [R] aggregating data with quality control

2024-08-31 Thread Ivan Krylov via R-help
В Sat, 31 Aug 2024 11:15:10 + Stefano Sofia пишет: > Evaluating the daily mean indipendently from the status is very easy: > > aggregate(mydf$hs, by=list(format(mydf$data_POSIX, "%Y"), > format(mydf$data_POSIX, "%m"), format(mydf$data_POSIX, "%d")), > my.mean) > > > Things become more comp

[R] aggregating data with quality control

2024-08-31 Thread Stefano Sofia
Dear R-list users, I deal with semi-hourly data from automatic meteorological stations. They have to pass a manual validation; suppose that status = "C" stands for correct and status = "D" for discarded. Here a simple example with "Snow height" (HS): mydf <- data.frame(data_POSIX=seq(as.POSIX