Publications by Jozef's Rblog

R:case4base – reshape data with base R

06.04.2018

Contents Introduction How to use this article Basic wide to long reshape Basic long to wide reshape Advanced reshape Alternatives to base R TL;DR – Just want the code Exercises References Exercise answers Discuss the article Introduction This is the first post in the R:case4base series. The aim of the series is to elaborate on very useful fea...

6476 sym R (7513 sym/9 pcs)

R:case4base – data subsetting and manipulation with base R

20.04.2018

Contents Introduction How to use this article Selecting (subsetting) relevant data from a data.frame Constructing meaningful subsets simply and safely More ways to provide subset indices Alternatives to base R TL;DR – Just want the code Exercises References Exercise answers Introduction In the previous article we discussed and learned how to ...

5503 sym R (1906 sym/7 pcs)

RStudio:addins part 1 – code reproducibility testing

05.05.2018

Introduction This is the first post in the RStudio:addins series. The aim of the series is to walk the readers through creating an R package that will contain functionality for integrating useful addins into the RStudio IDE. At the end of this first article, your RStudio will be 1 useful addin richer. The addin we will create in this article wil...

5378 sym R (2402 sym/11 pcs) 4 img

RStudio:addins part 1. – code reproducibility testing

05.05.2018

Contents Introduction Prerequisites and recommendations Step 1 – Creating a package Step 2 – Writing the first functions Step 3 – Setting up an addin Step 4 – Updating our DESCRIPTION and NAMESPACE What is next – Always paying our (technical) debts Wrapping up TL;DR – Just give me the package References Introduction This is the firs...

5325 sym R (2402 sym/11 pcs) 4 img

RStudio:addins part 2 – roxygen documentation formatting made easy

12.05.2018

Introduction Code documentation is extremely important if you want to share the code with anyone else, future you included. In this second post in the RStudio:addins series we will pay a part of our technical debt from the previous article and document our R functions conveniently using a new addin we will build for this purpose. The addin we wi...

5725 sym R (2318 sym/5 pcs) 10 img

RStudio:addins part 2 – roxygen documentation formatting made easy

12.05.2018

Introduction Code documentation is extremely important if you want to share the code with anyone else, future you included. In this second post in the RStudio:addins series we will pay a part of our technical debt from the previous article and document our R functions conveniently using a new addin we will build for this purpose. The addin we wi...

5725 sym R (2318 sym/5 pcs) 10 img

RStudio:addins part 3 – View objects, files, functions and more with 1 keypress

26.05.2018

Introduction In this post in the RStudio:addins series we will try to make our work more efficient with an addin for better inspection of objects, functions and files within RStudio. RStudio already has a very useful View function and a Go To Function / File feature with F2 as the default keyboard shortcut and yes, I know I promised automatic gen...

4630 sym R (2361 sym/4 pcs) 8 img

RStudio:addins part 3 – View objects, files, functions and more with 1 keypress

26.05.2018

Introduction In this post in the RStudio:addins series we will try to make our work more efficient with an addin for better inspection of objects, functions and files within RStudio. RStudio already has a very useful View function and a Go To Function / File feature with F2 as the default keyboard shortcut and yes, I know I promised automatic gen...

4713 sym R (2361 sym/4 pcs) 8 img

R:case4base – data aggregation with base R

09.06.2018

Introduction In the previous articles of the R:case4base series we discussed and learned how to reshape data with base R to a form that is practical for our use and how to subset data to get the relevant parts of it with base R. In this one, we will look at aggregation techniques using base R’s stats::aggregate generic function, focusing on t...

8354 sym R (18958 sym/7 pcs) 2 img

R:case4base – data aggregation with base R

09.06.2018

Introduction In the previous articles of the R:case4base series we discussed and learned how to reshape data with base R to a form that is practical for our use and how to subset data to get the relevant parts of it with base R. In this one, we will look at aggregation techniques using base R’s stats::aggregate generic function, focusing on t...

7760 sym R (19282 sym/7 pcs) 2 img