Commit 2065aa03 authored by Masaki Ban's avatar Masaki Ban 🍜
Browse files

[fix]read_rclでrefereeのコマンドがteamとagentに抽出される問題の修正

parent 49e8ea6f
...@@ -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 |>
......
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