![]() ![]() Note that newer records of this type are not empty tags. They look like this:, name:Apple Watch, manufacturer:Apple, model:Watch, hardware:Watch1,2, software:3.2>" The heart rate data is in the just-under 1 GB export.xml and is mixed in with all the other data points Apple records. That tree has the following structure: fs::dir_tree("~/Data/apple_health_export", recurse = 1) Opening it up results in a directory tree of nearly 3 GB of consumed drive space O_o. This compressed file is a deceivingly ~58 MB in size. (NOTE: I suggest saving it to and then downloading it from iCloud vs using local AirDrop to your system.) The apple_health_export.zip archive is generated by going to the “Health” iOS app, tapping your avatar in the upper left, then scrolling down and tapping the export button: Why two ways? Well, I’ve owned an Apple Watch off-and-on ever since the first generation device, and when Apple says you can export all your data, they mean all. Since it’s Valentine’s Day, I thought it might be fun to show two ways to read heart rate data from these exports. Plot.background = element_rect(color = NA, fill = "#141414")Įlementalist.geom_line= element_line_glow()Īpple Watch owners have the ability to export their tracked data and do whatever they like with it. Panel.background = element_rect(color = NA, fill = "#141414"), Library(elementalist) # remotes::install_github("teunbrand/elementalist")įile = "~/Data/apple_health_export/electrocardiograms/ecg_.csv", # this is extracted belowĭata = ekg %>% tail(3000) %>% head(2500), ![]() □ Expand for EKG code library(hrbrthemes) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |