Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondben committed Jan 20, 2024
1 parent 50c27ca commit f18f39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cleaning_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ remap_player_names <- function(x,remap) {
stop("x must be a datavolley object or list of such objects")
}
assert_that(is.data.frame(remap))
if (!(setequal(names(remap), c("from", "team", "to")) || setequal(names(remap), c("player_id"," player_name")))) {
if (!(setequal(names(remap), c("from", "team", "to")) || setequal(names(remap), c("player_id", "player_name")))) {
stop("remap data.frame must either have column names \"team\", \"from\", \"to\" OR \"player_id\", \"player_name\"")
}
for (k in seq_len(ncol(remap))) remap[[k]] <- as.character(remap[[k]]) ## enforce all cols to be character
Expand Down

0 comments on commit f18f39e

Please sign in to comment.