convert_jyear()andconvert_jdate(): the default oflegacyis changed fromFALSEtoTRUE(#60). The non-legacy ('ICU'-based) path can abort the R process on platforms wherestringiis linked against system 'ICU' (e.g. macOS), and the failure cannot be caught from R. The legacy path based onlubridateis now the default, and the previous behaviour is opt-in vialegacy = FALSEoroptions(zipangu.convert_jyear.legacy = FALSE)/options(zipangu.convert_jdate.legacy = FALSE).
separate_address(): handleNApatterns instringr::str_remove()for compatibility with stringr 1.6.0 (@hadley, #59).
- Declare
R (>= 4.1.0)inDepends, reflecting use of the native pipe|>and the lambda shorthand\(x). - Internal code now consistently uses the native pipe
|>(replacing magrittr%>%). The re-export of%>%is kept for backward compatibility. dplyr::recode()(superseded) is replaced withdplyr::replace_values(). The minimum required version ofdplyris bumped to>= 1.2.0.
- Class mismatch in specification of argument legacy in
convert_jdate()(#55).
convert_prefecture(): New functions for converting prefecture names between Roman and Kanji (@Doubt-0KB, #48).convert_prefecture_from_kana(): New functions for converting prefecture names from kana to Kanji (@Doubt-0KB, #48).
- Re-factoring
convert_jyear()andconvert_jdate()(@paithiov909, #50).
kana(): New function for create kana vector (#43).harmonize_prefecture_name(): New function for processing prefectural strings (#37).- Determine if the string is a prefecture string by
is_prefecture().
- Determine if the string is a prefecture string by
str_jnormalize: New function for pre-processing Japanese characters following the rules of 'neologd' (@paithiov909, #36).
- Fix the behaviors of
jholiday_spec()when any NAs, NULL, and empty strings are supplied (@paithiov909, #38). is_jholiday()fails if the date argument contains NA (@hidekoji, #39).is_jholiday()returns incorrect result iflubridate.week.startoption is set to other than Sunday (@hidekoji, #40).
jholiday_spec()is now memoised internally. This change makes its second and later calls faster. Also, multiple values ofnameare now acceptable. (@paithiov909, #38).
- Determination of substitute holidays due to forgetting to update raw data (#31).
- Added functions to convert Kansuji to Arabic numbers (@indenkun #23).
kansuji2arabic_num()converts Kansuji that containing kansuji for positions (e.g.Hyaku,Sen, etc) to Arabic numerals with the numbers represented by Kansuji (Fix #8).kansuji2arabic_str()converts Kansuji in the string to Arabic numerals with the numbers they represent.
- Added functions to graph labels to handle Kansuji (@indenkun #4).
label_kansuji()andlabel_kansuji_suffix()converts the label value to either Kansuji value or mixture of Arabic numerals and the Kansuji Scales.
- Holiday determination now reflects the 2021 calendar (@zettsu-t #28).
convert_jyear()supports strict representation of the Japanese imperial year (#30).
convert_jdate()can converts the Japanese date format to as a date object.
find_date_by_wday(),jholiday_spec(),jholiday(), andis_jholiday()are now vectorized and accept multipleyears (@yutannihilation, #15).separate_address()also now vectorized.
- Added several functions to handle postal code data.
read_zipcode()to read Japan post's zip-code file anddl_zipcode_file()for raw file download.is_zipcode()test zip-code. Only supports 7-digit numbers or characters.zipcode_spacer()insert and remove zip-code connect character.
str_jconv()andstr_conv_*()converts the kind of string used as Japanese people.- Added some functions related to Japanese holidays.
jholiday_spec()to find date from corresponding year and holiday name andjholiday()is used to look up a list of holidays for the year.is_jholiday()whether the day is a holiday.
- Find out the date of the specific month and weekday (
find_date_by_wday())
- Added a
NEWS.mdfile to track changes to the package.