Get full path to current R script

Are you wondering where is my current R script file located and how to determine the full path? Here is how to do that in RStudio or while running in batch mode.

How to create an empty data frame in R

Here is how to make an empty data frame in R only with column names. Choose between 4 different methods that you can use to achieve that, and decide which of those fits better for you.

Convert R TRUE and FALSE values to 1 and 0, and vice versa

Here is a simple method to convert R TRUE and FALSE values to 1 and 0, and vice versa.

Exit mobile version