R group by date, and summarize the values

后端 未结 4 1286
栀梦
栀梦 2020-11-30 12:47

R is new for me and I am working with a (private) data set.

I have the following problem, I have a lot of time series:

2015-04-27  12:29:48
2015-04-         


        
4条回答
  •  情话喂你
    2020-11-30 13:12

    you are on the right path - try : summarise(newVal = sum(energy$value) ) for your summarise call.
    df<- energy %>% group_by(datetime) %>% summarise(sum =sum(value)) )

提交回复
热议问题