exercise_plan.Rd
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
)
A numeric vector of body weight value, in kilograms.
A numeric vector of height, in meters.
An integer vector of sex, used in the Harris–Benedict equation estimation, 1 for male and 2 for female.
An integer vector of current age, in years.
A numeric vector of target weight, in kilograms.
An integer vector of number of days to reach the target weight.
TRUE or FALSE on whether to return a graphical visualization instead of a dictionary.
A dictionary of recommended exercises, or a graph plotting that
exercise_plan(100, 1.83, 2, 27, 68, 30)
#> Leisure cycling or walking Moderate rope-jumping
#> 213 88
#> General running Leisure swimming
#> 112 156