提取data.frame中的部分数据(不含列标题和行标题)
2016-07-24 15:35
274 查看
?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
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
相关文章推荐
- 【hihoCoder】1037 : 数字三角形
- socket原理详解
- Iptables防火墙知识总结
- Python学习笔记17:网络客户端编程
- Java开源Saas开发框架+Activiti流程管理=JSAAS
- vim 常用命令
- Java运行时数据区域学习
- 根据jsonobject中的部分数据更新javabean中对应的属性[PATCH]
- JAVASE总结--01(java 历史历程简述、JDK的安装、用CMD编译运行程序)
- 基于最小二乘法的直线拟合----同济---第六版---下册---125页
- ssh:Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open
- 【转】Python浅拷贝与深拷贝
- 选择中医 - 养生之道
- 选择中医 - 养生之道
- 使用 jsoup 对 HTML 文档进行解析和操作
- 2012杭州赛区(浙江理工大学)C - Substrings
- 高性能MySQL-Schema与数据类型优化
- 利用枚举得到表单信息
- FatMouse's Speed
- ndcg算法的python实现