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