工具:安装Rstudio
作者:互联网
1. 下载
2. 利用load和head函数读取数据
先用load函数,再用head函数,好久不用都忘记了。
bike数据下载地址
> load("/Users/jiawei/Downloads/bike.RData")
>
> head(bike)
season yr mnth holiday weekday workingday weathersit temp
1 WINTER 2011 JAN NO HOLIDAY SAT NO WORKING DAY MISTY 8.175849
2 WINTER 2011 JAN NO HOLIDAY SUN NO WORKING DAY MISTY 9.083466
3 WINTER 2011 JAN NO HOLIDAY MON WORKING DAY GOOD 1.229108
4 WINTER 2011 JAN NO HOLIDAY TUE WORKING DAY GOOD 1.400000
5 WINTER 2011 JAN NO HOLIDAY WED WORKING DAY GOOD 2.666979
6 WINTER 2011 JAN NO HOLIDAY THU WORKING DAY GOOD 1.604356
hum windspeed cnt days_since_2011
1 80.5833 10.749882 985 0
2 69.6087 16.652113 801 1
3 43.7273 16.636703 1349 2
4 59.0435 10.739832 1562 3
5 43.6957 12.522300 1600 4
6 51.8261 6.000868 1606 5
>
标签:HOLIDAY,WORKING,NO,安装,JAN,工具,Rstudio,2011,DAY 来源: https://blog.csdn.net/algTopD/article/details/122287374