Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Keisuke ANDO
socceR
Commits
5dd0d0ff
Commit
5dd0d0ff
authored
Dec 09, 2022
by
Takumi Amano
💬
Browse files
[fix]get_pass_Allplayerでいらないカラム削除
parent
023f84b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/make_data.R
View file @
5dd0d0ff
...
...
@@ -167,7 +167,7 @@ get_action_Allplayer <- function(players, action) {
get_pass_Allplayer
<-
function
(
players
,
pass
)
{
pass
<-
pass
%>%
dplyr
::
select
(
step
,
a
x
,
a
y
,
pass_team
=
team
,
ball_x
,
ball_y
,
ball_vx
,
ball_vy
,
pass_scc
)
dplyr
::
select
(
step
,
p
x
,
p
y
,
pass_team
=
team
,
ball_x
,
ball_y
,
ball_vx
,
ball_vy
,
pass_scc
)
output
<-
players
%>%
dplyr
::
inner_join
(
pass
,
by
=
"step"
)
return
(
output
)
...
...
@@ -182,8 +182,8 @@ get_dribble_Allplayer <- function(players, dribble) {
}
get_pass
<-
function
(
kick
)
{
output
<-
kick
%>%
dplyr
::
filter
(
pass
)
%>%
output
<-
kick
|>
dplyr
::
filter
(
pass
==
TRUE
)
%>%
distinct
(
step
,
.keep_all
=
TRUE
)
%>%
select
(
-
c
(
a_tackle_scc
,
tackle_scc
,
pass
,
a_sameteam
,
a_sameunum
,
next_team
,
next_unum
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment