Skip to contents

Compare daily and finalized 'GreenFeed' data.

Arguments

dailyrep

a data frame with daily '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 daily and final reports.

Examples

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

data <- compare_gfdata(
            dailyrep,
            finalrep,
            start_date = "2024-05-13",
            end_date = "2024-05-20")
#> Warning: There were 2 warnings in `dplyr::mutate()`.
#> The first warning was:
#>  In argument: `StartTime = dplyr::case_when(...)`.
#> Caused by warning:
#> ! All formats failed to parse. No formats found.
#>  Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning.
#> During the data processing 256 records were removed from the finalized data
#> During the data processing 0 records were added to the finalized data