Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是最新使用R语言的人。我想获得向量中出现次数最多的项目。所以,如果我有一个向量如下:vec<-as.vector(c(1,2,3,1,4,1,2))。我想得到1。
vec<-as.vector(c(1,2,3,1,4,1,2))
谢谢。