Load .qs file from a remote connection
Value
a dataframe as parsed by qs::qdeserialize()
Examples
# \donttest{
try({
qs_from_url(
"https://github.com/nflverse/nflverse-data/releases/download/player_stats/player_stats.qs"
)
})
#> player_id player_name player_display_name position position_group
#> <char> <char> <char> <char> <char>
#> 1: 00-0000003 <NA> Abdul-Karim al-Jabbar RB RB
#> 2: 00-0000003 <NA> Abdul-Karim al-Jabbar RB RB
#> 3: 00-0000003 <NA> Abdul-Karim al-Jabbar RB RB
#> 4: 00-0000003 <NA> Abdul-Karim al-Jabbar RB RB
#> 5: 00-0000003 <NA> Abdul-Karim al-Jabbar RB RB
#> ---
#> 128869: 00-0039165 Z.Charbonnet Zach Charbonnet RB RB
#> 128870: 00-0039165 Z.Charbonnet Zach Charbonnet RB RB
#> 128871: 00-0039165 Z.Charbonnet Zach Charbonnet RB RB
#> 128872: 00-0039165 Z.Charbonnet Zach Charbonnet RB RB
#> 128873: 00-0039165 Z.Charbonnet Zach Charbonnet RB RB
#> headshot_url
#> <char>
#> 1: <NA>
#> 2: <NA>
#> 3: <NA>
#> 4: <NA>
#> 5: <NA>
#> ---
#> 128869: https://static.www.nfl.com/image/private/f_auto,q_auto/league/yuddw2o5skwkgvut6wrv
#> 128870: https://static.www.nfl.com/image/private/f_auto,q_auto/league/yuddw2o5skwkgvut6wrv
#> 128871: https://static.www.nfl.com/image/private/f_auto,q_auto/league/yuddw2o5skwkgvut6wrv
#> 128872: https://static.www.nfl.com/image/private/f_auto,q_auto/league/yuddw2o5skwkgvut6wrv
#> 128873: https://static.www.nfl.com/image/private/f_auto,q_auto/league/yuddw2o5skwkgvut6wrv
#> recent_team season week season_type opponent_team completions attempts
#> <char> <int> <int> <char> <char> <int> <int>
#> 1: MIA 1999 1 REG DEN 0 0
#> 2: MIA 1999 2 REG ARI 0 0
#> 3: MIA 1999 4 REG BUF 0 0
#> 4: CLE 1999 7 REG LA 0 0
#> 5: CLE 1999 8 REG NO 0 0
#> ---
#> 128869: SEA 2023 14 REG SF 0 0
#> 128870: SEA 2023 15 REG PHI 0 0
#> 128871: SEA 2023 16 REG TEN 0 0
#> 128872: SEA 2023 17 REG PIT 0 0
#> 128873: SEA 2023 18 REG ARI 0 0
#> passing_yards passing_tds interceptions sacks sack_yards sack_fumbles
#> <num> <int> <num> <num> <num> <int>
#> 1: 0 0 0 0 0 0
#> 2: 0 0 0 0 0 0
#> 3: 0 0 0 0 0 0
#> 4: 0 0 0 0 0 0
#> 5: 0 0 0 0 0 0
#> ---
#> 128869: 0 0 0 0 0 0
#> 128870: 0 0 0 0 0 0
#> 128871: 0 0 0 0 0 0
#> 128872: 0 0 0 0 0 0
#> 128873: 0 0 0 0 0 0
#> sack_fumbles_lost passing_air_yards passing_yards_after_catch
#> <int> <num> <num>
#> 1: 0 0 0
#> 2: 0 0 0
#> 3: 0 0 0
#> 4: 0 0 0
#> 5: 0 0 0
#> ---
#> 128869: 0 0 0
#> 128870: 0 0 0
#> 128871: 0 0 0
#> 128872: 0 0 0
#> 128873: 0 0 0
#> passing_first_downs passing_epa passing_2pt_conversions pacr dakota
#> <num> <num> <int> <num> <num>
#> 1: 0 NA 0 NA NA
#> 2: 0 NA 0 NA NA
#> 3: 0 NA 0 NA NA
#> 4: 0 NA 0 NA NA
#> 5: 0 NA 0 NA NA
#> ---
#> 128869: 0 NA 0 NA NA
#> 128870: 0 NA 0 NA NA
#> 128871: 0 NA 0 NA NA
#> 128872: 0 NA 0 NA NA
#> 128873: 0 NA 0 NA NA
#> carries rushing_yards rushing_tds rushing_fumbles rushing_fumbles_lost
#> <int> <num> <int> <num> <num>
#> 1: 16 60 1 0 0
#> 2: 9 33 0 0 0
#> 3: 3 2 0 0 0
#> 4: 6 27 0 0 0
#> 5: 13 39 0 0 0
#> ---
#> 128869: 9 44 0 0 0
#> 128870: 4 16 0 0 0
#> 128871: 2 0 0 0 0
#> 128872: 2 2 0 0 0
#> 128873: 5 32 0 0 0
#> rushing_first_downs rushing_epa rushing_2pt_conversions receptions
#> <num> <num> <int> <int>
#> 1: 4 6.24877114 0 1
#> 2: 1 -1.43495017 0 3
#> 3: 0 -1.53995173 0 0
#> 4: 0 0.21605089 0 2
#> 5: 2 -2.97225885 0 0
#> ---
#> 128869: 2 -1.41342587 0 1
#> 128870: 1 -0.01441168 0 0
#> 128871: 0 -1.49543826 0 1
#> 128872: 0 -1.32044345 0 5
#> 128873: 2 1.18746009 0 2
#> targets receiving_yards receiving_tds receiving_fumbles
#> <int> <num> <int> <num>
#> 1: 1 7 0 0
#> 2: 4 18 0 0
#> 3: 1 0 0 0
#> 4: 2 8 0 0
#> 5: 0 0 0 0
#> ---
#> 128869: 1 4 0 0
#> 128870: 1 0 0 0
#> 128871: 2 -4 0 0
#> 128872: 5 39 0 0
#> 128873: 2 28 0 0
#> receiving_fumbles_lost receiving_air_yards receiving_yards_after_catch
#> <num> <num> <num>
#> 1: 0 0 0
#> 2: 0 0 0
#> 3: 0 0 0
#> 4: 0 0 0
#> 5: 0 0 0
#> ---
#> 128869: 0 -6 10
#> 128870: 0 3 0
#> 128871: 0 -13 2
#> 128872: 0 13 26
#> 128873: 0 5 23
#> receiving_first_downs receiving_epa receiving_2pt_conversions
#> <num> <num> <int>
#> 1: 0 0.2923782 0
#> 2: 1 0.3770089 0
#> 3: 0 -0.6995777 0
#> 4: 0 -0.2284540 0
#> 5: 0 NA 0
#> ---
#> 128869: 0 -0.7877243 0
#> 128870: 0 -0.4420668 0
#> 128871: 0 -1.9618932 0
#> 128872: 2 1.6444676 0
#> 128873: 2 1.7404904 0
#> racr target_share air_yards_share wopr special_teams_tds
#> <num> <num> <num> <num> <num>
#> 1: 0.0000000 0.05263158 NaN NaN 0
#> 2: 0.0000000 0.11764706 NaN NaN 0
#> 3: NA 0.02380952 NaN NaN 0
#> 4: 0.0000000 0.05000000 NaN NaN 0
#> 5: NA NA NA NA 0
#> ---
#> 128869: -0.6666667 0.03225806 -0.02553191 0.03051476 0
#> 128870: 0.0000000 0.03125000 0.01265823 0.05573576 0
#> 128871: 0.3076923 0.05555556 -0.05603448 0.04410920 0
#> 128872: 3.0000000 0.15151515 0.05777778 0.26771717 0
#> 128873: 5.6000000 0.07692308 0.03144654 0.13739719 0
#> fantasy_points fantasy_points_ppr
#> <num> <num>
#> 1: 12.7 13.7
#> 2: 5.1 8.1
#> 3: 0.2 0.2
#> 4: 3.5 5.5
#> 5: 3.9 3.9
#> ---
#> 128869: 4.8 5.8
#> 128870: 1.6 1.6
#> 128871: -0.4 0.6
#> 128872: 4.1 9.1
#> 128873: 6.0 8.0
# }