R - tips

将数据框转成一个向量

2019-10-12  本文已影响0人  董八七

You can try as.vector(t(test)). Please note that, if you want to do it by columns you should use unlist(test).

from Convert a dataframe to a vector (by rows)

上一篇下一篇

猜你喜欢

热点阅读