Simple questions, but I can\'t find an answer.
I have a vector
a<-c(5,6,7)
how can I get back the indices for all elements in my vec
If you like something elementary, you can try:
a<-c(5,6,7) b <- 1:length(a)