Introduction to R language Learning notes-understanding of R software

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.