I have following dataframe in R
ID Season Year Weekday 1 Winter 2017 Monday 2 Winter 2018 Tuesday 3
Once you have converted the season, year and weekday to factors, use this code to change to dummy indicator variables
contrasts(factor(dat$season) contrasts(factor(dat$year) contrasts(factor(dat$weekday)