Skip to content
Prev 378360 / 398502 Next

cumulative data monthly

Dear Jeff, Dear Rui, Dear all,

Forget about the monthly things. I was trying to do two things at the same
time.
I try to explain myself. Thanks for your time and I really appreciate your
help.

I have  a long file with hourly precipitation from 2000 to 2018. I would
like to select only on e year or even half of a year and plot the
cumulative precipitation of it in order to compare it with the simulation
data that I have.

So far I was able only to read all the file:
dati <- read.csv(file="116.txt", header=FALSE, sep="," ,
na.strings="-999",skip = 6)

and to plot the entire cumulative:
P <- cumsum(dati$PREC)
plot(dati$DATAORA, P)

How can I choose only, for example, 2013 in order to have P?
thanks again


Diego



On Mon, 28 Jan 2019 at 02:36, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote: