Articles by R on Thomas’ adventuRe

How does the pipe operator actually work?

June 14, 2020 | R on Thomas’ adventuRe

I think it’s fair to say that the pipe operator %__% from the {magrittr} package—made famous by its use in {dplyr}—revolutionized R. Using %__% you can chain together multiple functions to create pipelines for your data. That way you can write highly expressive code and mitigate the need to ... [Read more...]

Calculating change from baseline in R

June 10, 2020 | R on Thomas’ adventuRe

As a statistical programmer working on clinical trials data I frequently have to calculate change from baseline. In clinical trials baseline is typically defined as the last measurement prior to a clinical trial subject receiving any study drug. Change from baseline is frequently calculated for laboratory measurements, e.g. hemoglobin ... [Read more...]

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)