Compare FCA Call Report metadata files between two folders
Source:R/compare_metadata.R
compare_metadata.Rd
compare_metadata()
compares the content of the metadata files (files that
start with "D_") between two specified folders containing FCA Call Report
data (from two different quarters).
Value
A list containing information about differences in file names, file order,
and content differences between the metadata files in dir1
and dir2
Details
compare_metadata()
lists metadata files in each folder, identifies shared
metadata files, and then compares (a) the number of files, (b) file names,
(c) file order, and (d) file content (using the waldo::compare()
function).
Examples
if (FALSE) { # \dontrun{
# Download data from March 2023
path_1 <- tempfile("fcadata")
download_data(
year = 2023,
month = 3,
dest = path_1
)
# Download data from March 2022
path_2 <- tempfile("fcadata")
download_data(
year = 2022,
month = 3,
dest = path_2
)
compare_metadata(path_1, path_2)
} # }