knitr::opts_chunk$set(echo = TRUE)

Pre-Workflow Setup Steps 1. Download the selfquant package by entering the line devtools::install_github('maczokni/selfquant'). 2. Make your personal google sheet workbook to track your life. You can do this either by using the createSqTemplate() function within this package or making a duplicate through the Google Sheets UI here

Pull the current month from google sheets

library(googlesheets)
library(dplyr)
library(selfquant)
library(ggplot2)
library(plotly)
library(ohicore)

#Authenticate R to look at my Google Docs
(my_sheets <- gs_ls())
#Pull my custom tracker to look at May data
sq_data <- getQuant(title = "Chelsea Quant", workSheet = "0717")

#calculate summary stats
summary_df <- calcSummary(sq_data)

#Plot the month's data
plotWeek(sq_summary = summary_df)
plotFlower(sq_summary = summary_df)


maczokni/selfquant documentation built on May 30, 2019, 9:54 p.m.