This function generates a formatted table displaying the record counts for each citation source, including the number of records imported and the distinct records after deduplication.
Details
The function checks if the input data frame is empty and returns an empty gt
table
if no data is present. Otherwise, it generates a formatted table with labeled columns
and adds footnotes explaining the meaning of each column.
Examples
# Example usage with a sample dataset
sample_data <- data.frame(
Source = c("Source1", "Source2", "Source3"),
Records_Imported = c(100, 150, 250),
Distinct_Records = c(90, 140, 230)
)
create_initial_record_table(sample_data)
Record Counts
Records Imported1
Distinct Records2
Source1
Source2
Source3
1 Number of records imported from each source.
2 Number of records after internal source deduplication.