是否有R函数来求向量的最大值键?
在python中,我们有类似于list_name.index(max(list_name))的功能。
list_name.index(max(list_name))
发布于 2022-10-08 03:33:54
你在找which.max()吗
which.max()
vec = c(1,4,6,100,2) which.max(vec) #> 4
https://stackoverflow.com/questions/73994129
相似问题