Description Usage Arguments Author(s)
View source: R/standardize_coordinates.R
Standardize width (y) location columns from Opta event data to 105m x 68m convention
1 2 3 4 5 | standardize_opta_y(
data,
cols = c("location_y", "PassEndY", "BlockedY", "GoalMouthY"),
unit = "meters"
)
|
data |
A dataframe of Opta event data |
cols |
Columns to convert. Defaults to all y location columns |
unit |
Convert to meters or yards. Defaults to meters |
Lars Maurath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.