get_dewey_decimal_subject_section("709.05")
# "History, geographic treatment, biography"
get_dewey_decimal_subject_section("823.912")
# "English fiction"
# vectorized
get_dewey_decimal_subject_section(c("709.05", "invalid", NA, "823.912"))
# c("History, geographic treatment, biography", NA, NA,
# "English fiction")
Run the code above in your browser using DataLab