get_dewey_decimal_subject_section: Conversion from Dewey Decimal call numbers to third-level...

View source: R/call-numbers-and-subject.R

get_dewey_decimal_subject_sectionR Documentation

Conversion from Dewey Decimal call numbers to third-level subject description

Description

Takes a string representation of a Dewey Decimal call number (DDC) and returns it's subject description. This uses the first three digits of the DDC number and returns the third most general subject classification.

Usage

get_dewey_decimal_subject_section(x)

Arguments

x

A Dewey Decimal call number

Value

Returns the most general subject sectionification using the first three digits from the DDC. Returns NA if the DDC looks invalid

Examples


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")


libbib documentation built on Nov. 10, 2022, 6:16 p.m.