# create mann_kendall object
mk <- mann_kendall(c(9, 4, 7, 5, 3), type = "decreasing")
mk <- mann_kendall(
x = c(9, 4, 7, 5, 3),
t = c(1, 3, 2, 5, 9),
type = "decreasing")
# get test statistic tau
test_statistic(mk)
# get p-value
p_value(mk)
Run the code above in your browser using DataLab