Introduction to R and RStudio

-

Last updated on 2024-02-27 | +

Last updated on 2024-03-05 | Edit this page

@@ -453,13 +453,12 @@

Objectives

  • Files/Plots/Packages/Help/Viewer (tabbed in lower right)
  • RStudio layout

    Once you open files, such as R scripts, an editor panel will also open in the top left.

    -
    RStudio layout with .R file open
    +
    RStudio layout with .R file open
    -
    -

    R scripts -

    +
    +

    R scripts

    Any commands that you write in the R console can be saved to a file to be re-run again. Files containing R code to be ran in this way are @@ -482,13 +481,12 @@

    R scripts +
    -
    -

    Tip: Running segments of your code -

    +
    +

    Tip: Running segments of your code

    RStudio offers you great flexibility in running code from within the editor window. There are buttons, menu choices, and keyboard shortcuts. @@ -543,7 +541,7 @@

    OUTPUT