Load .rds file from a remote connection

rds_from_url(url)

Arguments

url

a character url

Value

a dataframe as created by readRDS()

Examples

# \donttest{ rds_from_url("https://github.com/nflverse/nfldata/raw/master/data/games.rds")
#> game_id season game_type week gameday weekday gametime #> 1: 1999_01_MIN_ATL 1999 REG 1 1999-09-12 Sunday <NA> #> 2: 1999_01_KC_CHI 1999 REG 1 1999-09-12 Sunday <NA> #> 3: 1999_01_PIT_CLE 1999 REG 1 1999-09-12 Sunday <NA> #> 4: 1999_01_OAK_GB 1999 REG 1 1999-09-12 Sunday <NA> #> 5: 1999_01_BUF_IND 1999 REG 1 1999-09-12 Sunday <NA> #> --- #> 6120: 2021_18_CAR_TB 2021 REG 18 2022-01-09 Sunday 13:00 #> 6121: 2021_18_SEA_ARI 2021 REG 18 2022-01-09 Sunday 16:25 #> 6122: 2021_18_KC_DEN 2021 REG 18 2022-01-09 Sunday 16:25 #> 6123: 2021_18_SF_LA 2021 REG 18 2022-01-09 Sunday 16:25 #> 6124: 2021_18_LAC_LV 2021 REG 18 2022-01-09 Sunday 16:25 #> away_team away_score home_team home_score location result total overtime #> 1: MIN 17 ATL 14 Home -3 31 0 #> 2: KC 17 CHI 20 Home 3 37 0 #> 3: PIT 43 CLE 0 Home -43 43 0 #> 4: OAK 24 GB 28 Home 4 52 0 #> 5: BUF 14 IND 31 Home 17 45 0 #> --- #> 6120: CAR NA TB NA Home NA NA NA #> 6121: SEA NA ARI NA Home NA NA NA #> 6122: KC NA DEN NA Home NA NA NA #> 6123: SF NA LA NA Home NA NA NA #> 6124: LAC NA LV NA Home NA NA NA #> old_game_id gsis nfl_detail_id pfr pff #> 1: 1999091210 598 <NA> 199909120atl NA #> 2: 1999091206 597 <NA> 199909120chi NA #> 3: 1999091213 604 <NA> 199909120cle NA #> 4: 1999091208 602 <NA> 199909120gnb NA #> 5: 1999091202 591 <NA> 199909120clt NA #> --- #> 6120: 2022010911 58770 10160000-0587-704e-6295-0c29cd0a1891 202201090tam NA #> 6121: 2022010912 58771 10160000-0587-7113-a978-455fec3cda14 202201090crd NA #> 6122: 2022010913 58772 10160000-0587-7224-5e5e-c71409627e21 202201090den NA #> 6123: 2022010914 58773 10160000-0587-738e-2b05-95daf03cb563 202201090ram NA #> 6124: 2022010915 58774 10160000-0587-7450-0923-b0f39c686c28 202201090rai NA #> espn away_rest home_rest away_moneyline home_moneyline spread_line #> 1: 190912001 7 7 NA NA -4 #> 2: 190912003 7 7 NA NA -3 #> 3: 190912005 7 7 NA NA -6 #> 4: 190912009 7 7 NA NA 9 #> 5: 190912011 7 7 NA NA -3 #> --- #> 6120: 401326596 7 7 NA NA NA #> 6121: 401326597 7 7 NA NA NA #> 6122: 401326598 7 7 NA NA NA #> 6123: 401326599 7 7 NA NA NA #> 6124: 401326600 7 7 NA NA NA #> away_spread_odds home_spread_odds total_line under_odds over_odds #> 1: NA NA 49.0 NA NA #> 2: NA NA 38.0 NA NA #> 3: NA NA 37.0 NA NA #> 4: NA NA 43.0 NA NA #> 5: NA NA 45.5 NA NA #> --- #> 6120: NA NA NA NA NA #> 6121: NA NA NA NA NA #> 6122: NA NA NA NA NA #> 6123: NA NA NA NA NA #> 6124: NA NA NA NA NA #> div_game roof surface temp wind away_qb_id home_qb_id #> 1: 0 dome astroturf NA NA 00-0003761 00-0002876 #> 2: 0 outdoors grass 80 12 00-0006300 00-0010560 #> 3: 1 outdoors grass 78 12 00-0015700 00-0004230 #> 4: 0 outdoors grass 67 10 00-0005741 00-0005106 #> 5: 1 dome astroturf NA NA 00-0005363 00-0010346 #> --- #> 6120: 1 outdoors grass NA NA <NA> <NA> #> 6121: 1 closed grass NA NA <NA> <NA> #> 6122: 1 outdoors grass NA NA <NA> <NA> #> 6123: 1 dome matrixturf NA NA <NA> <NA> #> 6124: 1 dome grass NA NA <NA> <NA> #> away_qb_name home_qb_name away_coach home_coach #> 1: Randall Cunningham Chris Chandler Dennis Green Dan Reeves #> 2: Elvis Grbac Shane Matthews Gunther Cunningham Dick Jauron #> 3: Kordell Stewart Ty Detmer Bill Cowher Chris Palmer #> 4: Rich Gannon Brett Favre Jon Gruden Ray Rhodes #> 5: Doug Flutie Peyton Manning Wade Phillips Jim Mora #> --- #> 6120: <NA> <NA> Matt Rhule Bruce Arians #> 6121: <NA> <NA> Pete Carroll Kliff Kingsbury #> 6122: <NA> <NA> Andy Reid Vic Fangio #> 6123: <NA> <NA> Kyle Shanahan Sean McVay #> 6124: <NA> <NA> Brandon Staley Rich Bisaccia #> referee stadium_id stadium #> 1: Gerry Austin ATL00 Georgia Dome #> 2: Phil Luckett CHI98 Soldier Field #> 3: Bob McElwee CLE00 Cleveland Browns Stadium #> 4: Tony Corrente GNB00 Lambeau Field #> 5: Ron Blum IND99 RCA Dome #> --- #> 6120: <NA> TAM00 Raymond James Stadium #> 6121: <NA> PHO00 State Farm Stadium #> 6122: <NA> DEN00 Empower Field at Mile High #> 6123: <NA> LAX01 SoFi Stadium #> 6124: <NA> VEG00 Allegiant Stadium
# }