preloader

What do I need to get started in R?

blog-image

To start this adventure, the first thing you need is to install R and Rstudio, without them I think it would be very difficult to start our adventure.

Remember that we need them both, R because it’s a programming language and also software; and Rstudio for their valuable development environment.


R



RStudio


What else do we need? Willingness to learn, dedication and patience, yes, patience!

Now you can calmly continue to install these wonders, you will not regret it! It is nothing that we do not know how to do now … Next, next, next … here we will be waiting impatiently for you.


Ready! We assume that everything is already installed and we feel like children with new toys. We want you to become more familiar with Rstudio, as it is more user-friendly; In addition, it has a much prettier interface than R, it also has many shortcuts, hotkeys, and web assistance.

After installing Rstudio and opening it you should be seeing something like this:
desktop


In case you have any problems or did not get a result similar to this, you can watch next video tutorial on YouTube. From my point of view it is a very interesting channel


Well, now a quick review by RStudio … let’s remember that RStudio interface is made up 4 areas or panels that fulfill a certain function and that we can rearrange from appearance options

desktops


The Window 1 will be our faithful friend, since this place we will spend most our time organizing and editing our command lines written in R language and running them using CONTROL + ENTER. All our code lines will be transformed into scripts, which will allow us to automate our processes more and more.


The Window 3 is where magic happens, all magic kinds, from installing libraries, to adding, subtracting, dividing, empowering, endless activities, because that’s where R code is executed; However, not everything that comes out of there is wonders, it’s also where the ERROR and warning messages will come out that annoy our lives a bit


With our program installed, we can start to see what its characteristics are, from options to visual themes. Now we will tell you about an important issue that you must take into account when handling R.

Most common data types and data structure in R

From my point of view, understanding or keeping in mind that there are different data types and that data structure in R also varies, will allow you to save yourself a lot of problems, it is serious, if you want you can write down in your notebook, because as long as you understand this, things that will come from now on will be much easier for you.

Data types

I will try to summarize everything for you in a table, initially we can think in seven (7) data types, which are:

tabla1


The topic about data structure and some examples that help us understand these two topics with which we usually work in R we will leave it for another post

In conclusion

First, we have our new toy installed and how do we learn to use a new toy? The answer is very, very simple, PLAYING WITH HIM! I’ll leave you a good book on R below for you to enjoy. Besides, there is nothing to worry about, here we will explain what you need to know.


R for Data Science (English Version)


As a second conclusion, we saw that there are 7 data types in R!, did you know? Comment your answer and leave us your conclusions

Finally, how could you see, data types in R are very simple, they are nothing strange, or anything that we cannot understand, but then we ask ourselves … How am I going to know what data types I have? … and well we tell you:



In the new post, WE WILL TELL YOU EVERYTHING!