Skip to content
Back to formatted view

Raw Message

Message-ID: <alpine.LNX.2.20.2108291006220.32406@salmo.appl-ecosys.com>
Date: 2021-08-29T17:07:24Z
From: Rich Shepard
Subject: Calculate daily means from 5-minute interval data
In-Reply-To: <13d266fe-9b35-ab21-e798-0037db517f67@sapo.pt>

On Sun, 29 Aug 2021, Rui Barradas wrote:

> I forgot in my previous answer, sorry for the duplicated mails.
> The function in my previous mail has a na.rm argument, defaulting to FALSE, 
> pass na.rm = TRUE to remove the NA's.
>
> agg <- aggregate(cfs ~ date, df1, fun, na.rm = TRUE)
>
> Or simply change the default. I prefer to set na.rm = FALSE because that's 
> what R's functions do. And I will only be used to one default, with base R 
> functions or my own code.

> Hope this helps,

Rui,

Again, yes it does.

Regards,

Rich