当前位置:网站首页>利用R语言读取csv文件入一个数据框,然后查看各列的属性。
利用R语言读取csv文件入一个数据框,然后查看各列的属性。
2022-07-30 08:21:00 【hnjzsyjyj】
【问题描述】
Load the data into a data frame.
Use an R command to check data type has been used for each column.
(利用R语言读取csv文件入一个数据框,然后查看各列的属性。)
【R语言代码】
> df <- read.csv("D:/body.csv")
> str(df)
'data.frame': 3741 obs. of 12 variables:
$ weight : num 15.8 17.9 23.5 16.8 15.3 18.3 13.7 13.8 19.8 19.2 ...
$ stature : int 1033 1039 1112 997 997 987 941 933 1164 1100 ...
$ head : int 498 506 512 489 473 513 507 490 529 524 ...
$ shoulder: int 282 273 309 253 273 279 249 251 296 284 ...
$ hand_l : int 120 121 121 116 114 114 101 109 125 123 ...
$ hand_w : int 55 56 59 51 51 55 52 50 59 56 ...
$ chest : int 526 564 601 532 501 558 503 502 553 563 ...
$ waist : int 475 498 520 491 465 503 459 461 507 535 ...
$ foot_l : int 163 163 171 163 167 164 150 150 175 172 ...
$ foot_w : int 67 67 65 61 64 66 61 61 69 65 ...
$ gender : Factor w/ 2 levels "F","M": 1 2 1 1 1 2 2 1 1 1 ...
$ age : int 50 51 53 46 41 44 40 43 66 62 ...
边栏推荐
- 基于SSM实现高校后勤报修系统
- How to Assemble a Registry
- SwiftUI SQLite 教程之 构建App本地数据库实现创建、读取、更新和删除(教程含完成项目源码)
- 详解JVM垃圾回收
- 电路分析:运放和三极管组成的恒流源电路
- 瑞吉外卖项目(五) 菜品管理业务开发
- Farthest Point Sampling - D-FPS vs F-FPS
- Leetcode - 990: equations of satisfiability
- 激活数据潜力 亚马逊云科技重塑云上存储“全家桶”
- Integral Special Notes-Three Formulas for Curve Area Integral
猜你喜欢

Circuit analysis: constant current source circuit composed of op amp and triode

【Flask框架①】——Flask介绍

Thinking about digital transformation of construction enterprises in 2022, the road to digital transformation of construction enterprises

SQL window function

英语语法-名词性从句

【三子棋】——玩家VS电脑(C语言实现)

剖析SGI STL空间配置器(一 、辅助接口函数)

编程界的“躲猫猫”比赛 | 每日趣闻

It is said that FPGA is high-end, what can it do?

OA Project Pending Meeting & History Meeting & All Meetings
随机推荐
SEER数据库中“手术变量(RX SUMM-SURG OTH REG/DIS )”下的字段解释
信号完整性测试
研发转至FAE(现场应用工程师),是否远离技术了?有前途吗?
解构的运用
MongoDB - 千万级数据脚本过滤笔记
Alibaba Cloud Cloud Server Firewall Settings
It is said that FPGA is high-end, what can it do?
与tcp协议有关的几个知识点
2022杭电多校第一场
电脑文档误删除怎么恢复,恢复误删除电脑文档的方法
【科普向】5G核心网架构和关键技术
leetcode力扣——一篇文章解决多数之和问题
最远点采样 — D-FPS与F-FPS
2022杭电多校第二场
Field interpretation under "Surgical variables (RX SUMM-SURG OTH REG/DIS)" in SEER database
激活数据潜力 亚马逊云科技重塑云上存储“全家桶”
The blockbuster IP that has been popular in the world for 25 years, the new work has become a script paradise
看完这100个客户需求,我终于知道企业文档管理的秘密
Network/Information Security Top Journal and Related Journals Conference
如何避免CMDB沦为数据孤岛?