Publications by Jozef's Rblog

cRafty tRicks – No more typing brackets!

01.09.2018

Calling functions in R usually involves typing brackets. And since many of our actions in R involve calling a function, we will have to type a lot of brackets working with R. Often it would make our life a lot easier if we could omit the need to type brackets where convenient. We will do exactly that today. Work in R faster with custom bracketle...

3377 sym R (3857 sym/6 pcs) 5 img

cRafty tRicks – No more typing brackets!

01.09.2018

Calling functions in R usually involves typing brackets. And since many of our actions in R involve calling a function, we will have to type a lot of brackets working with R. Often it would make our life a lot easier if we could omit the need to type brackets where convenient. We will do exactly that today. Work in R faster with custom bracketle...

3457 sym R (3857 sym/6 pcs) 6 img

3 reasons to not write that new code, and how I failed at it

15.09.2018

Introduction We all know that feeling. We have this great idea about a new project, feature, function, piece of code. What do we want? Write that amazing new code! When do we want it? Right NOW! The aim of this post is to try and give you at 3 good reasons to resist that urge and consider other options, be it in your business projects or your ...

5513 sym 2 img

3 reasons to not write that new code, and how I failed at it.

15.09.2018

Introduction We all know that feeling. We have this great idea about a new project, feature, function, piece of code. What do we want? Write that amazing new code! When do we want it? Right NOW! The aim of this post is to try and give you at 3 good reasons to resist that urge and consider other options, be it in your business projects or your ...

5594 sym 2 img

4 ways to be more productive, using RStudio’s terminal

29.09.2018

Introduction RStudio version 1.1 introduced the Terminal functionality, which does not seem to be getting enough deserved attention and love even though it is very well integrated with the rest of the IDE and can be extremely useful for several daily use-cases. In this post we will try to cover 4 very common scenarios where the Terminal can be v...

5341 sym R (1017 sym/5 pcs) 3 img

4 ways to be more productive, using RStudio’s terminal

29.09.2018

Introduction RStudio version 1.1 introduced the Terminal functionality, which does not seem to be getting enough deserved attention and love even though it is very well integrated with the rest of the IDE and can be extremely useful for several daily use-cases. In this post we will try to cover 4 very common scenarios where the Terminal can be v...

5421 sym R (1017 sym/5 pcs) 4 img

How to import a directory of csvs at once with base R and data.table. Can you guess which way is the fastest?

13.10.2018

Introduction Inspired by a recent post on how to import a directory of csv files at once using purrr and readr by Garrick, in this post we will try achieving the same using base R with no extra packages, and with data·table, another very popular package and as an added bonus, we will play a bit with benchmarking to see which of the methods is th...

6375 sym R (5093 sym/4 pcs)

How to import a directory of csvs at once with base R and data.table. Can you guess which way is the fastest?

13.10.2018

Introduction Inspired by a recent post on how to import a directory of csv files at once using purrr and readr by Garrick, in this post we will try achieving the same using base R with no extra packages, and with data·table, another very popular package and as an added bonus, we will play a bit with benchmarking to see which of the methods is th...

6220 sym R (5274 sym/4 pcs) 2 img

How to perform merges (joins) on two or more data frames with base R, tidyverse and data.table

27.10.2018

Introduction In this post in the R:case4base series we will look at one of the most common operations on multiple data frames – merge, also known as JOIN in SQL terms. We will learn how to do the 4 basic types of join – inner, left, right and full join with base R and show how to perform the same with tidyverse’s dplyr and data.table’s m...

6046 sym R (6357 sym/15 pcs) 3 img

How to perform merges (joins) on two or more data frames with base R, tidyverse and data.table

27.10.2018

Introduction In this post in the R:case4base series we will look at one of the most common operations on multiple data frames – merge, also known as JOIN in SQL terms. We will learn how to do the 4 basic types of join – inner, left, right and full join with base R and show how to perform the same with tidyverse’s dplyr and data.table’s m...

6125 sym R (6461 sym/15 pcs) 3 img