readin: Wrapper for reading in multiple years of CFB Stats data

Description Usage Arguments Value Examples

View source: R/readin.R

Description

This function reads in multiple years of files and returns them all in one data frame. The new data frame contains an additional column labeling the year that the observation was read in from. Additionally any spaces ( ) in column names are replaced with periods (.).

Usage

1
readin(file, yearvec)

Arguments

file

The name of the file to read in. The extension '.csv' is unnecessary.

yearvec

A vector containing the years to read in data for

Value

A data frame containing the years of values

Examples

1
plays <- readin("play", 2009:2012)

mattmills49/MELLS documentation built on May 21, 2019, 1:25 p.m.