Page 194 - Data Science class 11
P. 194

MyDocuments
                                                    Projects
                                                        ProjectA

                                                           Program1.R
                                                        ProjectB
                                                           Program2.R
                                                    Videos
                                                        Family

                                                           Video1.mp4
                                                         Vacation
                                                           Video2.mp4
                                                    Doc1.docx

        Absolute Path
        The absolute path specifies the complete path from the root directory to the file, regardless of the current working
        directory.
        The absolute path to "Notes.txt" from the "Projects" folder might be something like
        C:\Users\Admin\MyDocuments\Projects\ProjectA\Program1.R
        Relative Path

        The relative path is based on the current location in the file system.
        If you're in the "Projects" folder, the relative path to "Notes.txt" would be ../Notes.txt.
        This is because you need to go up one level (..) to the parent folder ("MyDocuments") and then access "Notes.txt".

        5.3.2 Setting a default Working directory

        A default working directory is a folder where RStudio goes, every time you open it. You can change the default working
        directory by performing the following steps:
        Step 1:   Click on the Tools menu. A drop-down menu appears.

        Step 2:  Select Global Options. The Options dialog box opens.




























          192   Touchpad Data Science-XI
   189   190   191   192   193   194   195   196   197   198   199