R/T_test_Cap_Total.R

Defines functions cap_team

Documented in cap_team

#' t-test between salary cap and total salary for a team
#' @param df1 a NBA team
#' @param
#' @return T-test between cap salary and total salary results
#' @examples cap_team(Spurs), cap_team(Rockets),cap_team(Mavericks)
#' @export

cap_team<- function(df){
  t.test(df$Salary_Cap,df$Total_Salary,alternative="two.sided",paired = TRUE)
}
MingshuangLi/Mingshuang_finalproject_RProgtamming documentation built on May 24, 2019, 4:05 p.m.