# Example dataset
df <- data.frame(
station_name = c("A", "B", "C", "D"),
sample_date = as.Date(c("2023-06-01", "2023-06-02", "2023-06-03", "2023-06-04")),
value = c(3.2, 0, 1.5, 0)
)
# Return a plain data.frame of zero-value records
check_zero_value(df, return_df = TRUE)
Run the code above in your browser using DataLab