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

R is a programming language and software environment for statistical computing and graphics supported by the R Foundations of Statistical Computiong. R Studio is an integrated development environment (IDE) for R. and R Markdown is the formatting syntax for authoring HTML, PDF, and MS word Document in R Studio.

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

R Console executed commands for R, Rscript is just a plain text file with R Commands in it and R Markdown is the formatting syntax for authoring HTML, PDF, and MS Word Documents in R Studio.

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

homework will be done in R Markdown

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 \]

-154.1962   
## [1] -154.1962
0.3928179
## [1] 0.3928179

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.

tan (5)
## [1] -3.380515
tan ( 5)
## [1] -3.380515
tan ( 5)
## [1] -3.380515

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 \]

the first entry gave us a correct answer the other three gave an error message. the tan 0.5 gave an erron of unexpected numeric constant, the ton(0.5) said could not find function “ton” and that tan0.5 said object ’tan0.5’not found

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