trend_stns | R Documentation |
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.
trend_stns(df, trend_years = NULL, min_years = 8)
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. |
Dataframe of stations with sufficient years of data
trend_stns(df = data_assessed, trend_years = c(format(min(data$sample_datetime), "%Y"):format(Sys.Date(), "%Y")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.