Commit 8979aa48 authored by Takumi Amano's avatar Takumi Amano 💬
Browse files

[fix]パスしているチーム、ドリブルしてるチームをわかりやすくした

parent 98b3253b
...@@ -5,6 +5,7 @@ get_player <- function(rcg, name) { ...@@ -5,6 +5,7 @@ get_player <- function(rcg, name) {
dplyr::select( dplyr::select(
step, step,
team = name, team = name,
side,
unum, unum,
px = x, px = x,
py = y, py = y,
...@@ -91,11 +92,19 @@ get_kick <- function(action) { ...@@ -91,11 +92,19 @@ get_kick <- function(action) {
return(output) return(output)
} }
get_action_Allplayer <- function(players,action){ get_pass_Allplayer <- function(players,pass){
action <- action %>% pass <- pass %>%
dplyr::select(c("step","ball_x","ball_y","pass_scc")) dplyr::select(step,pass_team=team,ball_x,ball_y,pass_scc)
output <- players %>%
dplyr::inner_join(pass,by = "step")
return(output)
}
get_dribble_Allplayer <- function(players,dribble){
dribble <- dribble %>%
dplyr::select(step,dribble_team=team,ball_x,ball_y,dribble_scc)
output <- players %>% output <- players %>%
dplyr::inner_join(action,by = "step") dplyr::inner_join(dribble,by = "step")
return(output) return(output)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment