This function computes muscle power as the product of muscle force and muscle lengthening velocity. It includes an option to reverse the velocity signal to treat shortening as positive (useful for power generation interpretation).
Usage
analyse_muscle_power_file(
muscle_force_file = "muscle_forces.sto",
muscle_velocity_file = "muscle_velocities.sto",
file_output = "muscle_power.sto",
reverse_velocity = FALSE,
write_file = TRUE,
return_object = FALSE
)
Arguments
- muscle_force_file
A string specifying the file path for the muscle force data (e.g., "muscle_forces.sto").
- muscle_velocity_file
A string specifying the file path for the muscle lengthening velocities (e.g., "muscle_velocities.sto").
- file_output
A string specifying the output file path for the muscle power results (e.g., "muscle_power.sto").
- reverse_velocity
A logical indicating whether to reverse the sign of velocity (default is FALSE).
- write_file
A logical indicating whether to write the results to a file (default is TRUE).
- return_object
A logical indicating whether to return the resulting data frame (default is FALSE).