To produce the climatology for plotting

pr_make_climatology(df, x)

Arguments

df

output of pr_get_Indices

x

A string of Year, Month, Day, time period of climatology

Value

dataframe to use in pr_plot_Climatology functions

Examples

df <- data.frame(Month = rep(1:12,10), StationCode = "NSI", Values = runif(120, min=0, max=10))
pr_make_climatology(df, "Month")
#>    Month StationCode     mean  N       sd        se
#> 1      1         NSI 4.460416 10 2.546422 0.8052494
#> 2      2         NSI 6.241850 10 3.460541 1.0943192
#> 3      3         NSI 4.851672 10 2.417387 0.7644449
#> 4      4         NSI 4.753408 10 3.021790 0.9555738
#> 5      5         NSI 5.757557 10 2.569587 0.8125748
#> 6      6         NSI 5.926900 10 3.420116 1.0815357
#> 7      7         NSI 6.171710 10 2.458909 0.7775752
#> 8      8         NSI 4.913936 10 3.534064 1.1175692
#> 9      9         NSI 5.665602 10 4.091832 1.2939510
#> 10    10         NSI 5.924905 10 3.577637 1.1313481
#> 11    11         NSI 4.678682 10 3.185965 1.0074907
#> 12    12         NSI 6.415623 10 2.592759 0.8199024