Introduction I have taken the file from the link https://data.fivethirtyeight.com/ I have selected the soccer predictions data and the info is at:https://github.com/fivethirtyeight/data/tree/master/soccer-spi
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
soccer_matches <- read.csv('https://raw.githubusercontent.com/datanerddhanya/DATA607/main/spi_matches.csv')
soccer_matches <- soccer_matches[,c('season','date','league_id','league','team1','team2','spi1','spi2', 'prob1','prob2')]
soccer_matches <- rename(soccer_matches,c(home_team = team1,away_team = team2))
variable.names(soccer_matches)
## [1] "season" "date" "league_id" "league" "home_team" "away_team"
## [7] "spi1" "spi2" "prob1" "prob2"
////Conclusion I was successfully able to read a file into a data frame. i was able to select specific columns in the data frame i was able to rename some of the column names in teh data frame.