powered by
This function takes as input a vector and returns the trend of each column expressed as the difference between two consecutive elements
trend(dat)
vector containing the trend of the each column
the vector to analyze
trend(c(1:10,10:1,1:10,10:1,1:10,10:1,1:10,10:1,1:10,10:1))
Run the code above in your browser using DataLab