refine_metadata {finna} | R Documentation |
Refine Finna Metadata
Description
The refine_metadata
function cleans and standardizes Finna metadata by:
-
Validating Required Fields: Checks for the presence of key metadata fields and returns
NULL
if any are missing. -
Handling Missing Values: Replaces
NA
values in critical fields with descriptive placeholder text (e.g., "Unknown Title"). -
Selecting Relevant Fields: Keeps only the following fields for streamlined analysis:
-
Title
: The title of the resource. -
Author
: The creator or author of the resource. -
Year
: The publication or release year. -
Language
: The language of the resource. -
Formats
: The format(s) of the resource (e.g., Book, Audio). -
Subjects
: The subject keywords or classifications. -
Library
: The owning library or institution. -
Series
: The series or collection the resource belongs to.
-
Usage
refine_metadata(data)
Arguments
data |
A tibble containing raw Finna metadata. |
Value
A tibble with selected, cleaned metadata fields, or NULL if required fields are missing.
Examples
library(finna)
sibelius_data <- search_finna("sibelius")
refine_metadata(sibelius_data)