Skip to contents

Performs comprehensive validation of the analysis_data target using pointblank's interrogation framework. Checks for:

  • Minimum row count

  • Required columns exist

  • No NULL values in key columns

  • Value ranges for physical measurements

  • Valid station IDs

Usage

validate_buoy_data(
  data,
  target_name = "analysis_data",
  min_rows = 100,
  report_path = NULL
)

Arguments

data

A data frame or tibble to validate

target_name

Name of the target for error messages (default: "analysis_data")

min_rows

Minimum expected rows (default: 100)

report_path

Optional path to save HTML validation report

Value

The original data if validation passes, otherwise aborts with error

Examples

if (FALSE) { # \dontrun{
# Basic validation
validated_data <- validate_buoy_data(my_data)

# With custom settings and report
validated_data <- validate_buoy_data(
  my_data,
  target_name = "custom_target",
  min_rows = 1000,
  report_path = "validation_report.html"
)
} # }