Skip to content

Commit

Permalink
fixup clean_homeaway
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 authored Jul 5, 2023
1 parent e92870e commit c542a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils_name_cleaning.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ clean_homeaway <- function(dataframe, invert = NULL){
"away"
}

if(!is.null(invert)) data.table::setDF(away); away[,c(invert)] <- away[,c(invert)] * -1
if(!is.null(invert)){ data.table::setDF(away); away[,c(invert)] <- away[,c(invert)] * -1 }

.row_order <- NULL
out <- data.table::rbindlist(list(home,away), use.names = TRUE)[order(.row_order),-c(".row_order")]
Expand Down

0 comments on commit c542a8f

Please sign in to comment.