update_log: Update running log to track running data

Description Usage Arguments Value Examples

Description

Update running log to track running data

Usage

1
2
update_log(units = "english", date, name, age, gender, height, weight, time,
  distance, heartrate = NA)

Arguments

units

'english' or 'metric'.

date

Date of run. Should be in "mm/dd/yyyy" format.

name

User's name. Should be in character format

age

User's age. Should be in numeric format.

gender

User's gender. Should be in character format, and should either be 'male' or 'female'.

height

User's height. Should be in numeric format.

weight

User's weight. Should be in numeric format.

time

The amount of time the user ran the distance in. Measured in minutes. Should be in character format.

distance

The distance the user ran. Measured in miles. Should be in numeric format.

heartrate

Optional parameter - user's heartrate during workout. Should be in numeric format.

Value

Updated dataframe with runner's info.

Examples

1
2
update_log("english", "09/30/2016", "Anna", 18, "female", 57, 128, 10, 1)
update_log("metric", "09/30/2016", "Jon", 19, "male", 57, 128, 10, 1, 72)

armaanshah96/runner documentation built on May 10, 2019, 1:39 p.m.