I am new in R and would like to run a mann-kendall on multiple columns at once.
structure(list(Year = c(1997, 1999, 2001, 2002), pH = c(8, 8.4,
8.2375, 8.27333333333333), Colour = c(16, 50.5, 21, 17.9090909090909
)), row.names = c(NA, -4L), class = c("tbl_df", "tbl", "data.frame"
))
This is a sample of my data
Here is what I tried for an individual column
MannKendall(NoordAnnual$Colour)
# tau = -0.137, 2-sided pvalue =0.4173
I am hoping the get a table with the values of tau and p-value for all columns.