Skip to content

Commit

Permalink
small fix v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondben committed Jan 19, 2024
1 parent eb10c35 commit 50c27ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: datavolley
Title: Reading and Analyzing DataVolley Scout Files
Version: 1.6.0
Version: 1.6.1
Authors@R: c(person("Ben", "Raymond", email = "[email protected]", role = c("aut", "cre")),
person("Adrien", "Ickowicz", role = "aut"),
person("Tyler", "Widdison", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/validation.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ validate_dv <- function(x, validation_level = 2, options = list(), file_type = "
pv <- x$meta$players_v
pv$team <- visiting_team(x)
pv$hv <- "visiting"
plyrs <- bind_rows(ph, pv)
plyrs <- tryCatch(rbind(ph, pv), error = function(e) bind_rows(ph, pv)) ## rbind fails when ph, pv have different columns (can happen with pv files); bind_rows fails when cols have different types
dpids <- plyrs$player_id[duplicated(plyrs$player_id)]
for (dpid in unique(dpids)) {
idx <- plyrs$player_id %eq% dpid
Expand Down

0 comments on commit 50c27ca

Please sign in to comment.