Page 190 - Data Science class 11
P. 190

5.2 WorkIng WIth rStudIo

        To work in RStudio, you need to first create an R script file. After creating the script file, you need to type the desired
        code of R language program. Then, you need to save the script file. And in the last step, you need to run the program.
        Let us perform all these tasks, one by one.


        5.2.1 creating a new r Script File
        To create a new R script file, you can either select File Æ New Æ R Script or click on the + icon and then select R
        Script, from the drop down menu, or simply press Ctrl + Shift + N.






























        A new R script file is created.


        5.2.2 typing r Language code and Saving a File
        Perform the following steps to type R language code and save the file:
        Step 1:   Type the desired code in the Code editor window.

        Step 2:   Click on the File menu. A drop-down menu appears.
        Step 3:   Select the Save option. The Save As dialog box appears.




























          188   Touchpad Data Science-XI
   185   186   187   188   189   190   191   192   193   194   195