If we want to create our own data set, we could enter the data into an Excel spreadsheet and save it as a. csv files are like spreadsheets, but are saved in a simpler format that makes it possible for R to read them. For example, in this session we will be importing two data set files: Note: you must install R before you install RStudio (see previous section for details). You should select the ‘RStudio Desktop’ version. Data SetsĪll data sets used in PH717 are comma separated value (.csv) files. RStudio is freely available for Windows, Mac and Linux operating systems and can be downloaded from the RStudio site. However, if you wish to learn more about R, here are links to additional resources. If you have questions or issues regarding the installation, please do not hesitate to ask Tommi (TSVV) or Maja (MJKN). The examples embedded into each week's learning modules will provide you with all of the necessary instructions for using R in this course, and it shouldn't be necessary to seek other instruction. The modules for this course have many examples of how to use R for specific tasks, and you will be using these from week to week. Once the RStudio is installed, it will have several windows as shown in the image below. Select the appropriate R studio installer (Windows or MAC) and run the installation. For Windows: click "install R for the first time".For Mac: install R package based on your current operating system.You will first install the base system for R and then install the RStudio, which provides a much more user-friendly interface.
0 Comments
Leave a Reply. |