Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R 中的 c() 函数中可以包含的项目数量似乎是有限的(100 项)。有什么办法可以规避这个限制吗?提前致谢。
有一个限制,但它是向量长度的限制,而不是 的限制c:
c
length(eval(call('c', 1:(2^31-1)))) ## [1] 2147483647 length(eval(call('c', 1:(2^31)))) ## Error in 1:(2^31) : result would be too long a vector