MFO | R Documentation |
Maximal Fat Oxidation & Fat Max Function
MFO( step_time, db_MFO, db_basal, db_graded = NULL, cv_var, author, VO2max = NULL )
step_time |
how often the data was collected (in seconds). |
db_MFO |
database containing MFO test. |
db_basal |
database containing basal test. |
db_graded |
database containing incremental exercise test. |
cv_var |
variable to estimate coefficient of variation. Can be: VO2, VCO2 or RER. |
author |
author to estimate MFO. Can be: Frayn or Jeukendrup. |
VO2max |
VO2max can be passed directly using this argument instead of use db_graded argument. |
Returns a list which contains:
MFO_db: database used to create the MFO plot.
MFO_plot: ggplot object with the MFO plot.
MFO: Maximal fat oxidation.
FAT_MAX: Intensity that elicits MFO.
x_CHO: carbohydrates in basal metabolism.
x_FAT: fat in basal metabolism.
x_Kcal: Kcal in basal metabolism.
## Not run: # Get old working directory oldwd <- getwd() # Set temporary directory setwd(tempdir()) # Read dfs data(list = c("basal_df", "MFO_df", "VO2max_df"), package = "MFO") # Convert to data.frame basal_df <- data.frame(basal_df) MFO_df <- data.frame(MFO_df) VO2max_df <- data.frame(VO2max_df) # Calculate MFO and Fatmax result_MFO <- MFO(step_time = 20, db_MFO = MFO_df, db_basal = basal_df, db_graded = VO2max_df, cv_var = "RER", author = "Frayn", VO2max = NULL) # set user working directory setwd(oldwd) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.