1. Install R: Self-Baidu?
2.R Console (r console) and R program scripts:
Open R Software, you will open the console directly, the console can display the results of the program run, error messages and other information, you can directly enter the action you want to perform and immediately return to the results of the run, the arrow ">" means waiting for input.
The program script is created by clicking "File"-"new program script" in the upper right corner. If you want to save the program code that has been submitted for a long time, you can write it in the program script and save it as a suffix "when you click on it." R "Data file, if you write code directly in the console, after you close the software, the code you have written disappears.
3. How to run the R program script:
Run the code using the shortcut key combination "Ctrl+r" or the right mouse button to select "Run current line or selected code". If you only want to run a line of code in the program script, then you only need to position the mouse to the bank, whether or not to select this line, if you want to run a program script file in a paragraph (multi-line) code, you need to select the line of code you want to run, and then choose a shortcut or right mouse button to run.
Of course, after you select the line of code and then click Edit, you can still find the "Run current line or selected code".
4. Mouse positioning in the console and the program script, the contents of the menu bar is not the same, in the operation should pay attention to, do not find the button.
5. Other functions can be explored slowly, master these can begin to write R program!
Introduction to R language Learning notes-understanding of R software