You can try as.vector(t(test)). Please note that, if you want to do it by columns you should use unlist(test).
You can try as.vector(t(test)). Please note that, if you want to do it by columns you should use unlist(test).
本文标题:将数据框转成一个向量
本文链接:https://www.haomeiwen.com/subject/oggfmctx.html
网友评论