R语言找数组中大于5的数怎么写?比如数组是1,3,6,9

如题所述

第1个回答  2014-08-24
which语句
Description
Give the TRUE indices of a logical object, allowing for array indices.
Usage
which(x, arr.ind = FALSE, useNames = TRUE)
arrayInd(ind, .dim, .dimnames = NULL, useNames = FALSE)本回答被提问者采纳
第2个回答  2014-04-17
我记得有一个和matlab里面find差不多的函数
你可以去找找
我一时忘了。
找不到再追问吧,我去翻翻以前代码
相似回答