Q1: What are the differences among R, R Studio, and R Markdown?

Type your answer here.

Q2: What are the differences among the R console, R script, and R Markdown file?

ANSWER HERE

Q3: What format must your homework be turned-in as to receive full credit?

ANSWER HERE

Q4: Compute the following two equations and present your answers below.

Note: The below code is math mode. You can see the formula in the HTML or PDF.

\[ \tan(1) - (67.2^{0.5} * 19) \]

\[ \lvert -0.3^{0.82} + \cos(\pi/\sqrt{2}) \rvert - 0.585479 \]

iris$NEWCOLUMN <- iris$Sepal.Length * 4
iris$NEWCOLUMN
##   [1] 20.4 19.6 18.8 18.4 20.0 21.6 18.4 20.0 17.6 19.6 21.6 19.2 19.2 17.2
##  [15] 23.2 22.8 21.6 20.4 22.8 20.4 21.6 20.4 18.4 20.4 19.2 20.0 20.0 20.8
##  [29] 20.8 18.8 19.2 21.6 20.8 22.0 19.6 20.0 22.0 19.6 17.6 20.4 20.0 18.0
##  [43] 17.6 20.0 20.4 19.2 20.4 18.4 21.2 20.0 28.0 25.6 27.6 22.0 26.0 22.8
##  [57] 25.2 19.6 26.4 20.8 20.0 23.6 24.0 24.4 22.4 26.8 22.4 23.2 24.8 22.4
##  [71] 23.6 24.4 25.2 24.4 25.6 26.4 27.2 26.8 24.0 22.8 22.0 22.0 23.2 24.0
##  [85] 21.6 24.0 26.8 25.2 22.4 22.0 22.0 24.4 23.2 20.0 22.4 22.8 22.8 24.8
##  [99] 20.4 22.8 25.2 23.2 28.4 25.2 26.0 30.4 19.6 29.2 26.8 28.8 26.0 25.6
## [113] 27.2 22.8 23.2 25.6 26.0 30.8 30.8 24.0 27.6 22.4 30.8 25.2 26.8 28.8
## [127] 24.8 24.4 25.6 28.8 29.6 31.6 25.6 25.2 24.4 30.8 25.2 25.6 24.0 27.6
## [141] 26.8 27.6 23.2 27.2 26.8 26.8 25.2 26.0 24.8 23.6

Q5: Choose one of the math functions above. When you run your code in R, do the number of spaces between the function name, parentheses, and numbers affect the result? Run three different trials. Explain and present your answers below.

ANSWER HERE

hist(iris$NEWCOLUMN)

Q6: Type the following functions into R. Present your output below. If you get an error message, attempt to explain the message using your own words.

Note: The below code is math mode. You can see the formula in the HTML or PDF. \[ tan(0.5) \] \[ tan 0.5 \] \[ ton(0.5) \] \[ tan0.5 \]

ANSWER HERE

Please turn–in your homework via Sakai by saving and submitting an R Markdown PDF or HTML file from R Pubs!