powered by
This function takes as input a vector and returns the sign of each element
sign_detect(dat)
vector with the signs of each element of the original matrix
the vector to be used
sign_detect(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