The calorie consumption needed each day is computed and a set of activities is suggested accordingly. If return_graph is True, a ggplot object instead of a dictionary.

exercise_plan(
  weight,
  height,
  sex,
  age,
  target_weight,
  number_of_days,
  return_graph = FALSE
)

Arguments

weight

A numeric vector of body weight value, in kilograms.

height

A numeric vector of height, in meters.

sex

An integer vector of sex, used in the Harris–Benedict equation estimation, 1 for male and 2 for female.

age

An integer vector of current age, in years.

target_weight

A numeric vector of target weight, in kilograms.

number_of_days

An integer vector of number of days to reach the target weight.

return_graph

TRUE or FALSE on whether to return a graphical visualization instead of a dictionary.

Value

A dictionary of recommended exercises, or a graph plotting that

Examples

exercise_plan(100, 1.83, 2, 27, 68, 30)
#> Leisure cycling or walking      Moderate rope-jumping 
#>                        213                         88 
#>            General running           Leisure swimming 
#>                        112                        156