trend_stns: Determine stations with sufficient data for trend analysis

View source: R/trend_stns.R

trend_stnsR Documentation

Determine stations with sufficient data for trend analysis

Description

Creates a dataframe with stations and the number of years with data. Stations with less than 8 different years of data are not sufficient for trend analysis via the status and trends methods.

Usage

trend_stns(df, trend_years = NULL, min_years = 8)

Arguments

data

Dataframe to determine stations for trend analysis

trend.years

Which years to determine trend by. Default is the minimum year within the data to the current year.

Value

Dataframe of stations with sufficient years of data

Examples

trend_stns(df = data_assessed, trend_years = c(format(min(data$sample_datetime), "%Y"):format(Sys.Date(), "%Y")))

donco/odeqstatusandtrends documentation built on April 20, 2024, 12:46 a.m.