Skip to content
Prev 378363 / 398502 Next

cumulative data monthly

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:
Message-ID: <43d62b82-4d7b-3e2a-c879-04a70f748d65@sapo.pt>
In-Reply-To: <CAG8o1y5uQxZWzSNMYNV4WzNi=UjeV_BPf0pETK9qSezsj=L=xw@mail.gmail.com>