create_log: Create a running log to track running data

Description Usage Arguments Value Examples

Description

Create a running log to track running data

Usage

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

Arguments

units

"english" or "metric"

date

User's date. Should be in "mm/dd/yyyy" format, of the class character.

name

User's name. Should be in

age

User's age. Should be in numeric format.

gender

User's gender. Should be either "male" or "female"

height

User's height. Should be in numeric format. If units = "english", should be in inches. If units = "metric", should be in centimeters.

weight

User's weight. Should be in numeric format.

time

The number of minutes the user ran the distance in. Should be in numeric format.

distance

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

heartrate

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

filename

The name under which you want the file saved. Should include .rds extension.

Value

Dataframe with user's run info.

Examples

1
2
create_log("english", "09/30/2016", "Anna", 18, "female", 57, 128, 10, 1)
create_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.