Learn Clinical Programming using SAS, R and Python etc

Search This Blog

How to install R / R Studio ?

 You could download and install the old version of R. But, I’d insist you to start with RStudio. It provides much better coding experience. For Windows users, R Studio is available for Windows Vista and above versions. Follow the steps below for installing R Studio:

  1.  Go to https://www.rstudio.com/products/rstudio/download/
  2.  In ‘Installers for Supported Platforms’ section, choose and click the R Studio installer based on your operating system. The download should begin as soon as you click.
  3. Click Next..Next..Finish.
  4. Download Complete.
  5. To Start R Studio, click on its desktop icon or use ‘search windows’ to access the program. It looks like this:

rstudio

Let’s quickly understand the interface of R Studio:

  1. R Console: This area shows the output of code you run. Also, you can directly write codes in console. Code entered directly in R console cannot be traced later. This is where R script comes to use.
  2. R Script: As the name suggest, here you get space to write codes. To run those codes, simply select the line(s) of code and press Ctrl + Enter. Alternatively, you can click on little ‘Run’ button location at top right corner of R Script.
  3. R environment: This space displays the set of external elements added. This includes data set, variables, vectors, functions etc. To check if data has been loaded properly in R, always look at this area.
  4. Graphical Output: This space display the graphs created during exploratory data analysis. Not just graphs, you could select packages, seek help with embedded R’s official documentation.

 Source

No comments:

Post a Comment