View source: R/compute_strain.R
compute_strain | R Documentation |
Computes strain (as a decimal) from dynamic and reference muscle length data using:
strain = (dynamic length - reference length) / reference length
compute_strain(
length_df_dynamic,
length_df_reference,
file_output = "muscle_strain.sto",
write_file = TRUE,
return_object = FALSE
)
length_df_dynamic |
A data frame containing dynamic muscle length data. May include a "time" column. |
length_df_reference |
A single-row data frame containing reference muscle lengths. May or may not include a "time" column. |
file_output |
Character string specifying the output filename for the strain .sto file. |
write_file |
Logical. If |
return_object |
Logical. If |
Either a data frame (if return_object = TRUE
), or invisibly returns NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.