View source: R/refine_metadata.R
refine_metadata | R Documentation |
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.
refine_metadata(data)
data |
A tibble containing raw Finna metadata. |
A tibble with selected, cleaned metadata fields, or NULL if required fields are missing.
library(finna)
sibelius_data <- search_finna("sibelius")
refine_metadata(sibelius_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.