View source: R/op_apply_keypoint_labels.R
op_apply_keypoint_labels | R Documentation |
This function renames columns of a dataframe based on the specified region.
op_apply_keypoint_labels(df)
df |
Dataframe with columns to be renamed. |
Dataframe with renamed columns.
# Example dataframe
df <- data.frame(
region = rep(c("body", "hand_left", "hand_right", "face"), each = 3),
x0 = rnorm(12), y0 = rnorm(12), c0 = rnorm(12),
x1 = rnorm(12), y1 = rnorm(12), c1 = rnorm(12)
)
# Apply keypoint labels
df_renamed <- op_apply_keypoint_labels(df)
print(df_renamed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.