Skip to content

cumulative data monthly

1 message · Rui Barradas

#
Hello,

Please click <reply all> to keep this threaded.

What I was trying to say is to do something along the lines of

Y <- lubridate::year(dati$DATAORA)
Y2013 <- Y[Y == 2013]
PY2013 <- ave(dati$PREC, Y2013, FUN = cumsum)

plot(dati$DATAORA, PY2013)


Hope this helps,

Rui Barradas

?s 08:57 de 28/01/2019, Diego Avesani escreveu: