Purpose

Here is a short document to get Norm started using R. As we discussed on the phone earlier today, this is the first of a series of exercises that will get you comfortable with the environment.

Markdown allows the analyst to create professional, appealing documents in-line with their analyses. It’s great for creating reports, documents or simply keeping track of the work you are doing.

Reference:

This link will be very helpful.

Assignment:

  1. Create a Hello World document, posted to RPubs, were you can get a free account. This document should contain the following elements:
  1. BOLD and Italicized text
  2. First, Second, and Third order headings.
  3. A simple inline equation and result. For example, 1 + 1 = 2.
  4. Be spell checked
  5. Contain an equation of your choice. I personally like:

\[F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j \omega t} dt,\] which you may remember as the Fourier Transform g. include a hyperlink of your choice.

  1. Review the use of package magrittr, and the three magrittr operators, %>%, %<>%, and %$%

  2. Since you are interested in plots, include the following code chunk and output:

library(ggplot2); library(magrittr)
data(mtcars)
mtcars %>% ggplot(aes(x = mpg, y = hp, size = disp, color = drat)) + geom_point() + geom_smooth() + ggtitle("Motor Trend Car Graph") 
## `geom_smooth()` using method = 'loess'