## Day of the week number in R

There is R base function like weekdays that can return the name of the weekday. But what if you want to get the…

Journey in work with data

There is R base function like weekdays that can return the name of the weekday. But what if you want to get the…

Here is how to apply the ifelse function across a range of multiple R data frame columns. Sometimes it is necessary to do…

The easiest way to do ISO week number and ISO year calculations in R is by using two simple functions from package lubridate.

Here is how to calculate variance across columns in the R data frame. The same technique can be useful in other situations. Like…

Here is how to generate a group index in R that restarts every time there change in variables.

You can calculate the moving average (also called a running or rolling average) in different ways by using R packages.

Here is how to use functions apply and match together in R and a result – return the name of the column that…

Do you want to edit R data frame like an Excel table? It is not possible the same way. But on the other…

R operator %in% is handy for work with vectors, but how to use it oppositely? Something like %notin% that will exclude anything that…

The easiest way to move the data frame column to a specific position in R is by using the function relocate from package…

Here is how to generate a group index in R that restarts every time there change in variables.