I don't understand the difference between is.atomic()
and is.vector()
. From my understanding, is.vector()
returns TRUE
for homogeneous 1D data structures. I believe is.atomic()
returns TRUE
for logicals, doubles, integers, characters, complexes, and raws...however, wouldn't is.vector()
as well? So I thought perhaps the difference lies in its dimensions, but is.atomic()
returned FALSE
on a dataframe of doubles, which made me even more confused, ah...
我不明白 is.atomic()
和 is.vector()
之间的区别。根据我的理解,is.vector()
为同构 1D 数据结构返回 TRUE
。我相信 is.atomic()
对 logicals、doubles、integers、characters、complex 和 raws 返回 TRUE
......但是,is.vector()
不也是吗?所以我想也许区别在于它的维度,但是 is.atomic()
在双精度的数据帧上返回了 FALSE
,这让我更加困惑,啊......
Also, what is the difference between an atomic vector and a normal vector?
另外,原子向量和法向量有什么区别?
Thanks for your clarification!
感谢您的澄清!