R语言中find函数怎么用

Python013

R语言中find函数怎么用,第1张

关于r语言中find函数的用法:

find(matlab)

find()所属R语言包:matlab

描述----------Description----------

Finds indices of elements.

查找的元素的索引。

用法----------Usage----------

find(x)

参数----------Arguments----------

参数:x

expression to evaluate

要计算的表达式

Details

If expression is not logical, finds indices of nonzero elements of argument x.

如果是不符合逻辑的表达,发现指数的非零元素的参数x。

值----------Value----------

Returns indices of corresponding elements matching the expression x.

返回指数的相应匹配的元素的表达x。

P. Roebuck <a href="mailto:[email protected]"[email protected]</a>

实例

----------Examples----------

find(-3:3 >= 0)

find(c(0, 1, 0, 2, 3))

关于r语言中find函数的用法:

find(matlab)

find()所属R语言包:matlab

描述----------Description----------

Finds indices of elements.

查找的元素的索引。

用法----------Usage----------

find(x)

参数----------Arguments----------

参数:x

expression to evaluate

要计算的表达式

Details