In order to calculate day dependent data with less workload, I like to automate processes. The first step is to judge the first day of each belongs to which day of the week.
Currently R's language setting is set to JA. This may be
>
[1] "金"
>
[1] "ja_JP.UTF-8"
Change LC_MESSAGES to US. But weekdays function still return the value in Japanese.
>
[1] "en_US"
>
[1] "金"
Investigate Sys
>
{
"LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_MESSAGES",
"LC_PAPER", "LC_MEASUREMENT"))
}
<
<
Set LC_ALL locale, instead of LC_MESSAGES to US English.
>
[1] "en_US/en_US/en_US/C/en_US/en_US"
Then return is in US English.
>
[1] "Fri"
>