Skip to content

Commit

Permalink
tidyselect
Browse files Browse the repository at this point in the history
  • Loading branch information
saiemgilani committed Mar 24, 2023
1 parent ff58b4d commit f8d95ab
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 20 deletions.
16 changes: 8 additions & 8 deletions R/espn_mbb_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ espn_mbb_game_all <- function(game_id) {
)
) %>%
dplyr::rename(
coordinate.x.raw = .data$coordinate.x,
coordinate.y.raw = .data$coordinate.y,
coordinate.x = .data$coordinate_x_transformed,
coordinate.y = .data$coordinate_y_transformed
"coordinate.x.raw" = "coordinate.x",
"coordinate.y.raw" = "coordinate.y",
"coordinate.x" = "coordinate_x_transformed",
"coordinate.y" = "coordinate_y_transformed"
)
}
suppressWarnings(
Expand Down Expand Up @@ -564,10 +564,10 @@ espn_mbb_pbp <- function(game_id) {
)
) %>%
dplyr::rename(
coordinate.x.raw = .data$coordinate.x,
coordinate.y.raw = .data$coordinate.y,
coordinate.x = .data$coordinate_x_transformed,
coordinate.y = .data$coordinate_y_transformed
"coordinate.x.raw" = "coordinate.x",
"coordinate.y.raw" = "coordinate.y",
"coordinate.x" = "coordinate_x_transformed",
"coordinate.y" = "coordinate_y_transformed"
)
}
suppressWarnings(
Expand Down
16 changes: 8 additions & 8 deletions R/espn_nba_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ espn_nba_game_all <- function(game_id){
)
) %>%
dplyr::rename(
coordinate.x.raw = .data$coordinate.x,
coordinate.y.raw = .data$coordinate.y,
coordinate.x = .data$coordinate_x_transformed,
coordinate.y = .data$coordinate_y_transformed
"coordinate.x.raw" = "coordinate.x",
"coordinate.y.raw" = "coordinate.y",
"coordinate.x" = "coordinate_x_transformed",
"coordinate.y" = "coordinate_y_transformed"
)
}
suppressWarnings(
Expand Down Expand Up @@ -544,10 +544,10 @@ espn_nba_pbp <- function(game_id){
)
) %>%
dplyr::rename(
coordinate.x.raw = .data$coordinate.x,
coordinate.y.raw = .data$coordinate.y,
coordinate.x = .data$coordinate_x_transformed,
coordinate.y = .data$coordinate_y_transformed
"coordinate.x.raw" = "coordinate.x",
"coordinate.y.raw" = "coordinate.y",
"coordinate.x" = "coordinate_x_transformed",
"coordinate.y" = "coordinate_y_transformed"
)
}
suppressWarnings(
Expand Down
4 changes: 4 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ For more information on the package and function reference, please see the [**`
<a href="https://twitter.com/_b4billy_" target="blank"><img src="https://img.shields.io/twitter/follow/_b4billy_?color=blue&label=%40_b4billy_&logo=twitter&style=for-the-badge" alt="@_b4billy_" /></a>
<a href="https://github.com/billyfryer" target="blank"><img src="https://img.shields.io/github/followers/billyfryer?color=eee&logo=Github&style=for-the-badge" alt="@billyfryer" /></a>

- [Ross Drucker](https://twitter.com/rossdrucker9)
<a href="https://twitter.com/rossdrucker9" target="blank"><img src="https://img.shields.io/twitter/follow/rossdrucker9?color=blue&label=%40rossdrucker9&logo=twitter&style=for-the-badge" alt="@rossdrucker9" /></a>
<a href="https://github.com/rossdrucker" target="blank"><img src="https://img.shields.io/github/followers/rossdrucker?color=eee&logo=Github&style=for-the-badge" alt="@rossdrucker" /></a>

## **Citations**

To cite the [**`hoopR`**](https://hoopR.sportsdataverse.org) R package in publications, use:
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ progressr::with_progress({
tictoc::toc()
```

## 2.39 sec elapsed
## 4.49 sec elapsed

## 218846 rows of NBA play-by-play data from 460 games.
## 515664 rows of NBA play-by-play data from 1093 games.

### **Men’s college basketball full play-by-play seasons (2006-2022) \~ 2-3 minutes**

Expand All @@ -80,9 +80,9 @@ progressr::with_progress({
tictoc::toc()
```

## 5.37 sec elapsed
## 13.89 sec elapsed

## 735700 rows of men's college basketball play-by-play data from 2263 games.
## 1951588 rows of men's college basketball play-by-play data from 6098 games.

## **Documentation**

Expand Down Expand Up @@ -119,6 +119,10 @@ stars](https://img.shields.io/github/stars/sportsdataverse/hoopR.svg?color=eee&l
<a href="https://twitter.com/_b4billy_" target="blank"><img src="https://img.shields.io/twitter/follow/_b4billy_?color=blue&label=%40_b4billy_&logo=twitter&style=for-the-badge" alt="@_b4billy_" /></a>
<a href="https://github.com/billyfryer" target="blank"><img src="https://img.shields.io/github/followers/billyfryer?color=eee&logo=Github&style=for-the-badge" alt="@billyfryer" /></a>

- [Ross Drucker](https://twitter.com/rossdrucker9)
<a href="https://twitter.com/rossdrucker9" target="blank"><img src="https://img.shields.io/twitter/follow/rossdrucker9?color=blue&label=%40rossdrucker9&logo=twitter&style=for-the-badge" alt="@rossdrucker9" /></a>
<a href="https://github.com/rossdrucker" target="blank"><img src="https://img.shields.io/github/followers/rossdrucker?color=eee&logo=Github&style=for-the-badge" alt="@rossdrucker" /></a>

## **Citations**

To cite the [**`hoopR`**](https://hoopR.sportsdataverse.org) R package
Expand Down
2 changes: 2 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ authors:
href: https://twitter.com/theFirmAISports
Billy Fryer:
href: https://twitter.com/_b4billy_
Ross Drucker:
href: https://twitter.com/rossdrucker9
home:
title: hoopR • Data and Tools for Men's Basketball
description: >
Expand Down
1 change: 1 addition & 0 deletions man/hoopR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f8d95ab

Please sign in to comment.