powered by
Takes a string representation of a Library of Congress call number and returns all the subject letters if and only if the LC Call Number is valid
get_all_lc_call_subject_letters(x, allow.bare = FALSE)
Returns all the subject letters or NA if invalid
A Library of Congress call number (string)
A logical indicating whether an LC Call with only the letters should be considered valid (default is FALSE)
FALSE
get_all_lc_call_subject_letters("Q172.5.E77") # Q get_all_lc_call_subject_letters("AF172.5.E77") # NA # vectorized get_all_lc_call_subject_letters(c("Q 172.5", "AF172", "PR6023.A93")) # Q NA PR
Run the code above in your browser using DataLab