nonparTrends | R Documentation |
Uses non-parametric methods to test for trends in water quality data across years for each month. This function assumes that the data are composed of monthly observations that are correlated within a year. Note that this function is only appropriate for trends that are one-directional and requires at least 6 datapoints within a given month to test for trends.
nonparTrends(
object,
parkcode = NA,
sitecode = NA,
charname = NA,
category = NA,
info = NA,
censored = FALSE,
...
)
object |
A |
charname |
Name, in quotes, of a single |
category |
Name, in quotes of a single category of characteristics whose data should be analyzed. Either this or |
censored |
Either |
... |
Additional commands passed to |
The results of a Theil-Sen analysis for censored or non-censored data with a row for month in the analysis and a column for the month, slope, intercept and p-value (pval) from each test.
waterobj <- importNCRNWater(Dir = "./Data/",
Data = "Water Data.csv",
MetaData = "VizMetaData.csv")
trends<- nonparTrends(waterobj, parkcode = "ACAD", sitecode = "NETN_ACAD_LONG", charname = "pH", censored = FALSE)
trends_cen<- nonparTrends(waterobj, parkcode = "ACAD", sitecode = "NETN_ACAD_LONG", charname = "NO2+NO3_mgL", censored = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.