Created
April 20, 2012 01:53
-
-
Save perrygeo/2425260 to your computer and use it in GitHub Desktop.
Use R to summarize GoldenCheetah metrics database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RSQLite) | |
con <- dbConnect("SQLite", dbname = "/Users/perry/Library/GoldenCheetah/MattPerry/metricDB") | |
d <-dbGetQuery(con, "select * from metrics") | |
# Correlate heartrate and time riding with "bike score" | |
cor((d$Xaverage_hr / LTHR) ^2 * (d$Xtime_riding/3600 * 100), d$Xskiba_bike_score) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment