python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Find mean of counts within groups
I have a dataframe that looks like this:
library(tidyverse)
x <- tibble(
batch = rep(c(1,2), each=10),
exp_id = c(rep('a',3),rep('b',2),rep('c',5),rep('d',6),rep('e',4))
)
I can run the...
Adam_G
Votes: 0
Answers: 2
Summarize(mean) across records keeping the variables that don't change
I have a dataframe that contains records from various devices that measure parameters like temperature and humidity, I'm trying to group the records in intervals of 10 mins. Example in question:
id ...
sandrodand
Votes: 0
Answers: 1
What's the easiest way to summarize by group and for the whole sample?
Suppose I have data that looks like this:
Date time price minute FOMC Daily.Return
<date> <time> <dbl> <dbl> <fct> <dbl>
1 2005-01-0...

Raul Guarini Riva
Votes: 0
Answers: 2