Skip to content

Instantly share code, notes, and snippets.

View irJERAD's full-sized avatar

Jerad Acosta irJERAD

View GitHub Profile

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@irJERAD
irJERAD / apple_health_load_analysis_R.r
Last active January 3, 2017 17:55 — forked from ryanpraski/apple_health_load_analysis_R.r
Load Apple Health Kit export.xml file in R then analyze and visualize Steps Data using R
library(dplyr)
library(ggplot2)
library(lubridate)
library(XML)
#load apple health export.xml file from download folder after unzipped - iMac file path
xml <- xmlParse("/Users/irJERAD/Downloads/apple_health_export/export.xml")
#transform xml file to data frame - select the Record rows from the xml file
df <- XML:::xmlAttrsToDataFrame(xml["//Record"])