Category: R Quick Tips
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.
My favorite RStudio tips and tricks
Here is a list of my most used time-saving tips and tricks or just great looking features in RStudio.
How to clear RStudio panes with code
Here is how to clear the RStudio console, environment, and plot windows (panes) individually or at the same time by using code (a combination of functions).