R语言中的typeof()和mode()区别浅谈

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_17478541/article/details/51287650

mode() :常见的有:"logical","integer","double","complex","raw","character","list","expression","name","function"

typyof():大部分也是如此;mode()的输出依赖于typeof();

modes have the same set of names as types except that

●types "integer" and "double" are returned as "numeric".

●types "special" and "builtin" are returned as "function".

●types "symbol" is called mode "name".

●types "language" is returned as "(" or "call".

通过上述帮助文档,我们能直观的看出typeof和mode的区别。

猜你喜欢

转载自blog.csdn.net/qq_17478541/article/details/51287650