Description Usage Arguments Value Examples
View source: R/cleaning_functions.R
Compute difference in orientation between direction player is currently facing and orientation if player were facing towards a given x and y location.
1 | compute_o_diff(df, prefix = "qb")
|
df |
A dataframe containing x, y, o, "prefix"_x, and "prefix"_y |
prefix |
(default = "qb"). Columns prefix_x and prefix_y must be contained in |
Original dataframe with o_to_"prefix" added, which is the difference in orientation in degrees between the way the player is facing and where the "prefix" player is (0 is facing directly at the "prefix" player, 180 is directly away).
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.