4
I have a dataframe with daily precipitation data, with dates 01/01/1900 until 31/12/2010, example:
# Data Est_1 Est_2 Est_3
# 17/12/2010 NA 0 0
# 18/12/2010 NA 0 0
# 19/12/2010 NA 1.7 0
# 20/12/2010 NA 1.1 37.2
# 21/12/2010 NA 88.5 50
# 22/12/2010 NA 30 0
I want to extract some information from this dataframe, such as subseries containing the information:
- minimum daily annual rainfall
- the average daily annual rainfall
- the maximum daily annual rainfall
How to do this in R or Python?
R has several native functions to work with time series, based on objects
ts
. There are also several extra packages such aszoo
andtimeSeries
. Have you tried using any of them? The way your question was asked, the answer is simply "Yes, in R, there is".– Molx