Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleDo not copy the > characters in the R examples.

They are the R prompt to remind you which commands are to be run inside the R shell!

...

Hints for working with R

  • Don't forget: it's q() to quit.
  • For help, type ?command. Try ?read.table. The q key gets you out of help, just like for a man page.
  • The left arrow <- (less-than-dash) is the same as an equals sign =. You can use them interchangeably.
  • The prompt we will sometimes be showing for R is >. Don't type this for a command. It is like the login1$ at the beginning of the bash prompt when you log in to Lonestar. It just means that you are in the R shell.
  • You can type the name of a variable to have its value displayed. Like this...
    Code Block
    > x <- 10 + 5 + 6
    > x
    [1] 21
    

...

When you start R later, you will not need to re-intall install the modules. You can load them with just these commands:

...