Created
October 21, 2024 10:19
-
-
Save hrstt/f12acf369a910c55551be833045a816d to your computer and use it in GitHub Desktop.
日本の休日一覧を内閣府からとってくる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library('tidyverse') | |
locale( | |
date_names = "en", | |
date_format = "%AD", | |
time_format = "%AT", | |
decimal_mark = ".", | |
grouping_mark = ",", | |
tz = "Asia/Tokyo", | |
encoding = "CP932", | |
asciify = FALSE | |
) -> file_locale | |
readr::read_csv( | |
"https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv", | |
locale = file_locale, | |
col_types = c("?", "c"), | |
show_col_types = TRUE | |
) -> data | |
ymd(data$`国民の祝日・休日月日`) -> data$`国民の祝日・休日月日` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment