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.
例如,uni = 1:10当我尝试时,data.frame(uni) 我会得到:
uni = 1:10
data.frame(uni)
1 2 3 4 5 6 7 8 9 10
我怎样才能得到像
有 2 行?
我猜你想要这两个之一:
matrix(uni, ncol = 2) matrix(uni, nrow = 2, byrow = T)