I would like to change days of the week from Dutch to English, however, Sys.getlocale (category = "LC_ALL") and Sys.setlocale (category = "LC_ALL", locale = "English United States"), give the warning message : OS reports request to set locale to "English United States" cannot be honored.
The dataframe is:
daily_activity <- dailyActivity_merged %>%
clean_names() %>%
mutate(activity_date = mdy(activity_date), day_week = weekdays(activity_date))%>%
rename(date=activity_date)
with following output:
> print(daily_activity)
id date total_steps total_distance day_week
1 1503960366 2016-04-12 13162 8.50 dinsdag
2 1503960366 2016-04-13 10735 6.97 woensdag
3 1503960366 2016-04-14 10460 6.74 donderdag
4 1503960366 2016-04-15 9762 6.28 vrijdag
5 1503960366 2016-04-16 12669 8.16 zaterdag
6 1503960366 2016-04-17 9705 6.48 zondag
7 1503960366 2016-04-18 13019 8.59 maandag
8 1503960366 2016-04-19 15506 9.88 dinsdag