R: Get indices of all elements in a vector?

后端 未结 2 1514
离开以前
离开以前 2021-01-29 14:40

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

2条回答
提交回复
热议问题