R/Import_teams.R

# read the data from csv
new_NBA_salary <- read.csv("data-raw/new_NBA_salary.csv")
usethis::use_data(new_NBA_salary, overwrite = T)

# read the data for each group
Spurs <- subset(new_NBA_salary, Team=="San Antonio Spurs")
usethis::use_data(Spurs, overwrite = T)

Rockets <- subset(new_NBA_salary, Team=="Houston Rockets")
usethis::use_data(Rockets, overwrite = T)

Mavericks<- subset(new_NBA_salary, Team=="Dallas Mavericks")
usethis::use_data(Mavericks, overwrite = T)
MingshuangLi/Mingshuang_finalproject_RProgtamming documentation built on May 24, 2019, 4:05 p.m.