February 2021

Extracting Heart Rate Data (Two Ways!) from Apple Health XML Export Files Using R (a.k.a. The Least Romantic Valentine’s Day R Post Ever)

February 14, 2021 | hrbrmstr

???? Expand for EKG code library(hrbrthemes) library(elementalist) # remotes::install_github("teunbrand/elementalist") library(ggplot2) read_csv( file = "~/Data/apple_health_export/electrocardiograms/ecg_2020-09-24.csv", # this is extracted below skip = 12, col_names = "µV" ) %__% mutate( idx = 1:n() ) -__ ekg ggplot() + geom_line_theme( data = ekg %__% tail(3000) %__% head(2500), aes(idx, µ...
[Read more...]

The unequalled joy of non-equi joins

February 13, 2021 | David Selby

A common task in data analysis is to merge or join two tables according to shared keys or values. The operation is perhaps most commonly associated with relational databases and structured query language (SQL) but it’s just as useful in R with data frames. Most joins are equi-joins, matching ... [Read more...]

R Shiny makes your data alive

February 12, 2021 | Mirai Solutions

Let R Shiny do the storytelling job for you and add fantastic interactive interfaces for your R analysis. Why should you care about learning shiny? Follow me in this not so improbable scenario and you’ll see why. Let’s say you have an R function my... [Read more...]

Framework for Shiny Apps in R Packages

February 11, 2021 | R on Jason Bryer

TL;DR: You can test this approach using this Github Gist. R Shiny Apps have become a popular way of creating web applications in R. There are many ways of running Shiny Apps including locally in RStudio, on Shinyapps.io or installing the server software on your own host. I ... [Read more...]

Target: monitoring a running goal in R

February 11, 2021 | quantixed

Many running races and events have been cancelled or disrupted due to the pandemic. To fill the void, I’ve been taking on Garmin’s “Challenges”. In Garmin Connect, you can accept a challenge set by Garmin (I think users can challenge each other too). Completion of these challenges gives ...
[Read more...]

Code Maintenance

February 10, 2021 | R on The Data Behind the Story

Insert Lead paragraph here. Introduction In this article I would like to take a look at some coding principles and best practices and discuss what can help you, as a data analyst, write and maintain code that can be easily shared and understood by other analysts or yourself, when you ...
[Read more...]
1 4 5 6 7 8 12

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)