19.08.2015 Views

1 - Intro to R Outline

1 - Intro to R Outline

1 - Intro to R Outline

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.

Variables• Variable names can’t start with a number• R is case-sensitive• Some common letters are used internally by R and should beavoided as variable names (c, q, t, C, D, F, T, I)• Try <strong>to</strong> keep names short but descriptive.• There are reserved words that R won’t let you us for variablenames. A few examples:• for, in, while, if, else, repeat, break• R will let you use the name of a predefined function. So try<strong>to</strong> not over write those!11Basics•Basic algebra is the same•Use 2*x not 2x, 2^p instead of 2 p•Applying a function is similar•Making a variable, use

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

Saved successfully!

Ooh no, something went wrong!