12.07.2015 Views

R dummies

R dummies

R dummies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

that we use it to illustrate the examples in this book. Throughout the book, youfind some tips and tricks on how things can be done in RStudio. If you decide to usea different code editor, you can still use all the code examples and you’ll getidentical results.To open RStudio, click the RStudio icon in your menu system or on yourdesktop, as shown in Figure 2-4. (You can find installation instructions in this book’sappendix.)Figure 2-4: Opening RStudio.Once RStudio started, choose File⇒New⇒R Script.Your screen should look like Figure 2-5. You have four work areas:Source: The top-left corner of the screen contains a text editor that lets youwork with source script files. Here, you can enter multiple lines of code, saveyour script file to disk, and perform other tasks on your script. This code editorworks a bit like every other text editor you’ve ever seen, but it’s smart. Itrecognizes and highlights various elements of your code, for example (usingdifferent colors for different elements), and it also helps you find matchingbrackets in your scripts.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!