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
我有一个向量a=5 并想使用示例函数sample(a)。令我惊讶的是,这并不总是返回数字 5,但有时会返回 4,3 等。
a=5
sample(a)
我错过了什么?