# NOT RUN {
# Working examples:
# Compute trends statistics using a data frame and data argument with defaults
flow_data <- tidyhydat::hy_daily_flows(station_number = "08NM116")
trends <- compute_annual_trends(data = flow_data,
zyp_method = "yuepilon")
# Compute trends statistics using station_number with defaults
trends <- compute_annual_trends(station_number = "08NM116",
zyp_method = "yuepilon")
# Compute trends statistics and plot a trend line if the significance is less than 0.05
trends <- compute_annual_trends(station_number = "08NM116",
zyp_method = "yuepilon",
zyp_alpha = 0.05)
# Compute trends statistics and do not plot the results
trends <- compute_annual_trends(station_number = "08NM116",
zyp_method = "yuepilon",
include_plots = FALSE)
# }
Run the code above in your browser using DataLab