Member-only story
5 awesome R tricks you need to see

Welcome back! R is an awesome language used for data processing / manipulation, it’s also one of my favorite languages out there, let’s take a look at 5 awesome tricks within R that you need to see. These range in uses, but they could be implemented in most projects out there! Let’s get started!
Running Python Code In R
Starting off, we have the ability of running Python code in R. This specific trick is very useful for those of you who want to run Python outside of an R environment, we can achieve this by using the Reticulate package, as long as you have Python installed on your machine you will be able to do this! Check out the tutorial below to see exactly how to do this:
Reading/Importing & Converting Files Easily
Next up, we have the ability of reading/importing and converting files very easily with R. As most of you know, importing CSV’s, Excels and Text files all have their own ways of being brought in and exported with R, with the Rio package it makes this process much easier! Check out the link below to learn more about this package:
We’re able to bring in most of the common data files by using the “import” function!
Finding The Structure Of Objects
Next up we have the ability of finding the structure of objects using the str() function. Now, the reason you may want to do this is to get some more information of an object with R, let’s take a look at the following example:
#CREATING A LIST OF NUMBERS
list <- list(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)#USING THE STR() FUNCTION
str(list)