首页 > 其他 > 详细

提取data.frame中的部分数据(不含列标题和行标题)

时间:2016-07-24 16:24:43      阅读:338      评论:0      收藏:0      [点我收藏+]

 

 ?unlist
    Given a list structure x, unlist simplifies it to produce a vector which contains all the atomic components which occur in x.

unlist(v.row)
[1] 177 165 177 177 177 177 145 132 126 132 132 132 126 120 145 167 167 167
       167 165 177 177 177 177

 

You can do it with as.vector also, but you need to provide the correct mode:
 as.vector(v.row,mode=‘numeric‘)
 [1] 177 165 177 177 177 177 145 132 126 132 132 132 126 120 145 167 167
      167 167 165 177 177 177 177

提取data.frame中的部分数据(不含列标题和行标题)

原文:http://www.cnblogs.com/emanlee/p/5700897.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!