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

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的区别。

你可能感兴趣的:(R)