Still some one and a half years ago I was one of those who with conviction said "No, programming is definitely not for me". I will not risk to tell that I became a programmer, but for the last year R replaced to me the majority of daily programs for work. I work as the researcher. With interest I observe how gradually R becomes the standard in the academic world. Generally, in the world the understanding that it makes sense to communicate with the computer slightly more freely, than at the level of the click&drag; programs spreads.; So, quite recently the Jellyfish wrote that
In this post I will tell about one of the shortest ways to programming — studying of R by means of a special packet of swirl (the packet in R is the same that in many other languages is called library, expansion/addition of initial functionality). The post is expected the reader with zero knowledge of R interested in studying of this programming language; it will help as it seems to me, most effectively and without serious consequences to take the first steps in a programming dark.
The unrolled answer: R — a versatile tool which can be useful to very wide range of specialists. It is completely open and very dynamically developing project with a lot of inspired followers worldwide. Everyone can write the packet and lay out in open access (it really not really difficult). R gives boundless opportunities for data visualization. To be inspired, it is possible to glance in one of galleries (for example, this post.
On Habré there are a lot of publications with use of R. There are also posts about the language, for example R crib. Is possible to subtract a lot of curious from the text of the person who found R nearly at the sources.
For the researcher of R is just must.
So, all of you are with me. Means, without wasting words we will do several simple steps to begin active training.
Step 1. Installation R
Here everything is simple. We visit the official site, we download under the axis, we set. Any difficulties. Cunnings are, but about it in the following post.
Step 2. We set RStudio
Similarly. We visit the official site, we download under the axis, we set. Absolutely any difficulties.
The program free of charge for personal use. Without any restrictions. The companies should pay for installation in commercial purposes.
Step 3. We set swirl
Everything that it is necessary — to write the following line to consoles and to click Enter
Some time in the console will be displayed installation process of a packet. At the end the program will report that everything is good. Now it is necessary to load swirl. For this purpose we use function
In total! Interactive training began.
In the right lower part of the screen in Rstudio there is a panel with auxiliary information. We are interested in the Packages tab. Further we Click Install
also the dialog box of installation of packets appears. We enter into the search line swirl and we confirm installation.
Installation process begins. It can take some time. At the end the program will report on successful installation, and swirl will appear in the list of packets.
If in RStudio to note the necessary packet in the list, it will be loaded in the current session. At the same time necessary function itself will be printed in the console.
Many simple operations in RStudio can be performed by means of the graphic interface.
There are very many interactive courses developed under swirl (in principle, nobody prevents to develop also the). The page of developers can look at the list of official rates on github. By default the course R Programming is established. Also it makes sense to begin with it with everything, getting acquainted with R.
Additional courses are established by special function of a packet swirl, for example
This article is a translation of the original post at habrahabr.ru/post/271265/
If you have any questions regarding the material covered in the article above, please, contact the original author of the post.
If you have any complaints about this article or you want this article to be deleted, please, drop an email here: firstname.lastname@example.org.
We believe that the knowledge, which is available at the most popular Russian IT blog habrahabr.ru, should be accessed by everyone, even though it is poorly translated.
Shared knowledge makes the world better.