I have two datasets as in the link.
I am trying to calculate the coefficient of determination for each month i.e. jan-dec for Tmax.
How could I do it?
Thanks
df=read_csv("df.csv",col_names = TRUE)
head(df)
# A tibble: 6 x 4
datetime Tmax month year
<dttm> <dbl> <dbl> <dbl>
1 1976-09-24 15:00:00 20.3 9 1976
2 1976-10-06 09:15:00 15.2 10 1976
3 1976-11-27 16:00:00 17.8 11 1976
4 1976-12-06 15:00:00 2.54 12 1976
5 1977-01-09 20:45:00 7.62 1 1977
6 1977-02-24 00:30:00 20.3 2 1977
df1=read_csv("df1.csv",col_names = TRUE)
head(df1)
# A tibble: 6 x 4
DateTime Tmax month year
<dttm> <dbl> <dbl> <dbl>
1 1976-09-24 15:45:00 17.2 9 1976
2 1976-10-06 09:45:00 11.0 10 1976
3 1976-11-28 11:00:00 15 11 1976
4 1976-12-06 15:00:00 4 12 1976
5 1977-01-14 08:00:00 9 1 1977
6 1977-02-24 00:15:00 12 2 1977