Skip to content
Back to formatted view

Raw Message

Message-ID: <alpine.LNX.2.20.2109131419190.10716@salmo.appl-ecosys.com>
Date: 2021-09-13T21:22:09Z
From: Rich Shepard
Subject: tidyverse: grouped summaries (with summerize)
In-Reply-To: <034b01d7a8e3$be08cf90$3a1a6eb0$@verizon.net>

On Mon, 13 Sep 2021, Avi Gross via R-help wrote:

> Did I miss something?

Avi,

Probably not.

> The summarise() command is telling you that  you had not implicitly
> grouped the data and it made a guess. The canonical way is:
> ... %>% group_by(year, month, day, hour) %>% summarise(...)

After sending the message I saw the example using %>% and didn't realize
that it made a difference from the previous example.

> You decide which fields to group by, sometimes including others so they
> are in the output.

That's what I thought I did. I'll rewrite the script and work toward the
output I need.

Thanks,

Rich