Gabriel Juarez
2/21/2015
We all want to get more aerobic excercise, but end up spending hours on the couch pondering these serious questions…
These questions can be answered by referencing heart rate (HR) facts found in books or on the internet:
If we know R, we start it up on a laptop and do:
age <- 41
maxhr <- 220 - age
hi <- maxhr *.85
lo <- maxhr *.55
output<- paste("a person of age",age, "should try to stay in the range", lo, "-", hi, "beats/minute")
output
[1] "a person of age 41 should try to stay in the range 98.45 - 152.15 beats/minute"
1 Visit http://gadaju.shinyapps.io/week3/ using your smartphone!
2 Use the simple slide control to select your age, and the Target Heart Rate Calculator does the rest!