Skip to contents

Compare preliminary and finalized 'GreenFeed' data.

Arguments

prelimrep

a data frame with preliminary 'GreenFeed' data

finalrep

a data frame with finalized 'GreenFeed' data

start_date

a character string representing the start date of the study (format: "mm/dd/yyyy")

end_date

a character string representing the end date of the study (format: "mm/dd/yyyy")

Value

Data frame including records removed from preliminary and final reports

Examples

#Datasets with preliminary and finalized GreenFeed data
prelimrep <- system.file("extdata", "StudyName_GFdata.csv", package = "greenfeedr")
finalrep <- system.file("extdata", "StudyName_FinalReport.xlsx", package = "greenfeedr")

data <- compare_gfdata(
            prelimrep,
            finalrep,
            start_date = "2024-05-13",
            end_date = "2024-05-20")
#> During the data processing 256 records were removed from the finalized data
#> During the data processing 257 records were added to the finalized data