当前位置:网站首页>Use the R language to read the csv file into a data frame, and then view the properties of each column.
Use the R language to read the csv file into a data frame, and then view the properties of each column.
2022-07-30 09:33:00 【hnjzsyjyj】
[Problem Description]
Load the data into a data frame.
Use an R command to check data type has beenused for each column.
(Use the R language to read the csv file into a data frame, and then view the properties of each column.)
[R language code]
> 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 ...边栏推荐
猜你喜欢
随机推荐
研发转至FAE(现场应用工程师),是否远离技术了?有前途吗?
Flutter 环境变量配置和flutter doctor中的错误解决
剖析SGI STL空间配置器(空间配置器的重要性和重要成员及函数)
[Unity]UI切换环形滚动效果
TreeSet解析
[Yugong Series] July 2022 Go Teaching Course 021-Slicing Operation of Go Containers
342 · Valley Sequence
2022/07/29 Study Notes (day19) Exception Handling
Dynamic Lead Time Promising
【Flask框架②】——第一个Flask项目
stugc_paper
Integral Special Notes - Definition of Integral
Webview中的超链接点击到外部浏览器打开
Reflection tricks can boost your performance by N times
test4
浅论各种调试接口(JTAG、SWD、RDI、Jlink、Ulink、STlink)的区别
How to avoid CMDB becoming a data island?
STM8L_库函数-模板搭建
ACL 2022 | Introduce angular margin to construct comparative learning objectives and enhance text semantic discrimination ability
C语言经典练习题(3)——“汉诺塔(Hanoi)“









