get_kick_point.R 372 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
get_kick_point <- function(log_data) {
  output <- log_data |> 
  dplyr::filter(command=="kick") |>
  dplyr::mutate(
    x = args |> stringr::str_extract("[0-9\\-\\.]+"),
    l1 = args |> stringr::str_remove(x),
    y = l1 |> stringr::str_extract("[0-9\\-\\.]+"),

  ) |>
  dplyr::select(
    step,
    team,
    unum,
    command,
    x,
    y,
  )
  
  return(output)
}