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
2065aa03
Commit
2065aa03
authored
Nov 17, 2022
by
Masaki Ban
🍜
Browse files
[fix]read_rclでrefereeのコマンドがteamとagentに抽出される問題の修正
parent
49e8ea6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/read_rcl.R
View file @
2065aa03
...
@@ -10,7 +10,7 @@ read_rcl <- function(path) {
...
@@ -10,7 +10,7 @@ read_rcl <- function(path) {
tibble
::
as_tibble
()
|>
tibble
::
as_tibble
()
|>
dplyr
::
mutate
(
dplyr
::
mutate
(
step
=
value
|>
stringr
::
str_extract
(
"\\d+"
),
step
=
value
|>
stringr
::
str_extract
(
"\\d+"
),
agent
=
value
|>
stringr
::
str_extract
(
"\\w+_([0-9]{1,2}|Coach)"
),
agent
=
value
|>
stringr
::
str_extract
(
"\\w+_([0-9]{1,2}|Coach)
(?!\\))
"
),
team
=
agent
|>
stringr
::
str_remove
(
"_([0-9]{1,2}|Coach)"
),
team
=
agent
|>
stringr
::
str_remove
(
"_([0-9]{1,2}|Coach)"
),
unum
=
agent
|>
stringr
::
str_extract
(
"([0-9]{1,2}|Coach)$"
),
unum
=
agent
|>
stringr
::
str_extract
(
"([0-9]{1,2}|Coach)$"
),
commands
=
value
|>
commands
=
value
|>
...
...
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