import_month_data: Import monthly data from bluebike system data

View source: R/import_month_data.R

import_month_dataR Documentation

Import monthly data from bluebike system data

Description

This function takes in numeric year/month values and imports data for the specified time

Usage

import_month_data(year, month)

Arguments

year

numeric value of year

month

numeric value of month

Value

A spec_tbl_df object

Examples


# Pull Jan., 2015 data from web
library(dplyr)
jan_2015 <- import_month_data(2015, 1)

# Pull first quarter of 2015 data from web
spring2015 <- c(1, 2, 3)
quarter_1_2015 <- lapply(spring2015, import_month_data, year = 2015)
quarter_1_2015 <- bind_rows(quarter_1_2015)


zyang2k/bluebike documentation built on May 7, 2022, 2:33 p.m.