add_jump_length_and_height: Calculate measures of jump length and jump height

View source: R/jump_functions.R

add_jump_length_and_heightR Documentation

Calculate measures of jump length and jump height

Description

Adds the columns jump_length and jump_height to a tibble containg mocap data of a jump.

Usage

add_jump_length_and_height(.data, method = "movement_plane")

Arguments

.data

A tibble containing motion-capture data from a jump.
The data must contain the following columns:

  • jump_events You can create this column using add_jump_events

  • marks A character column containg one or more of c("TOL", "TOR", "TOB"), AND one or more of c("FFL", "FFR", "FFB")

  • Global spatial ankle joint center positions in the floor plane: LAX LAZ RAX RAZ

  • Global spatial hip joint-center height positions: LHY RHY

method

The method that should be used to calculate jump length.

Value

The tibble suplied in .data argument with the added columns jump_length and jump_height both measures are in cm.

Examples

# Prepare data
df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
df <- add_phases_jump(df)
df <- mocapr::project_full_body_to_MP(df)

add_jump_length_and_height(df)


steenharsted/mocapr documentation built on Feb. 1, 2024, 1:49 p.m.