From 98b3253ba7b1966c9035814d3d53d6a58909b00e Mon Sep 17 00:00:00 2001 From: takumiamano Date: Fri, 23 Sep 2022 23:47:57 +0900 Subject: [PATCH] [fix]get_pass_Allplayer --- R/make_data.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/make_data.R b/R/make_data.R index a51cd9d..d03ba8e 100644 --- a/R/make_data.R +++ b/R/make_data.R @@ -92,8 +92,8 @@ get_kick <- function(action) { } get_action_Allplayer <- function(players,action){ - players <- players %>% - dplyr::select(-c("px","py")) + action <- action %>% + dplyr::select(c("step","ball_x","ball_y","pass_scc")) output <- players %>% dplyr::inner_join(action,by = "step") return(output) -- GitLab