これを行うと、正しい結果が得られます。
a <- c("10","28","3")
which(as.numeric(a) == min(as.numeric(a)))
[1] 3
しかし、ベクトルにNAがある場合は、問題があります
a <- c("10","28","3","NA")
which(as.numeric(a) == min(as.numeric(a)))
integer(0)
Warning messages:
1: In which(as.numeric(a) == min(as.numeric(a))) :
NAs introduced by coercion
2: In which(as.numeric(a) == min(as.numeric(a))) :
NAs introduced by coercion