Learn R Programming

ISLR2 (version 1.3-2)

Bikeshare: Bike sharing data

Description

This data set contains the hourly and daily count of rental bikes between years 2011 and 2012 in Capital bikeshare system, along with weather and seasonal information.

Usage

Bikeshare

Arguments

Format

A data frame with 8645 observations on a number of variables.

season

Season of the year, coded as Winter=1, Spring=2, Summer=3, Fall=4.

mnth

Month of the year, coded as a factor.

day

Day of the year, from 1 to 365

hr

Hour of the day, coded as a factor from 0 to 23.

holiday

Is it a holiday? Yes=1, No=0.

weekday

Day of the week, coded from 0 to 6, where Sunday=0, Monday=1, Tuesday=2, etc.

workingday

Is it a work day? Yes=1, No=0.

weathersit

Weather, coded as a factor.

temp

Normalized temperature in Celsius. The values are derived via (t-t_min)/(t_max-t_min), t_min=-8, t_max=+39.

atemp

Normalized feeling temperature in Celsius. The values are derived via (t-t_min)/(t_max-t_min), t_min=-16, t_max=+50.

hum

Normalized humidity. The values are divided to 100 (max).

windspeed

Normalized wind speed. The values are divided by 67 (max).

casual

Number of casual bikers.

registered

Number of registered bikers.

bikers

Total number of bikers.

References

James, G., Witten, D., Hastie, T., and Tibshirani, R. (2021) An Introduction to Statistical Learning with applications in R, Second Edition, https://www.statlearning.com, Springer-Verlag, New York

Examples

Run this code
lm(bikers~hr, data=Bikeshare)

Run the code above in your browser using DataLab