Q & A’s
Please place your answers in the R Markdown code blocks or write the answers next to the A:
- Q: Simple calculus: what is the R code to calculate 5.3278 * 8.3?
- A:
# place answer code here
- Q: Simple calculus: what is the R code to calculate the square route of 64?
- A:
# place answer code here
- Q: Simple calculus: what is the R code to calculate 2 to the power of 16?
- A:
# place answer code here
- Q: What is the R code to calculate how many kHz 44100 Hz is?
- A:
# place answer code here
- Q: In R the object
pi
defaults to the mathematical constant of the same name. What is the R code to calculate the area of a circle that has a radius of 10cm (reminder: A = pi*r^2)
- A:
# place answer code here
- Q: What is the R code to create a sequence from 0 to 2*pi that has a length of 16000?
- A:
# place answer code here
- Q: What is the R code to (a.)) calcualte and (b.)) visualize the sinus values for the above sequence?
- A:
# place answer code here
- Q: Given a sample rate of 16000: how many Hz is the sine wave in the above plot?
- A:
Tasks
- Create a R Markdown file (output: html_document) containing the heading: “I am great at math”, the text "" and the R code block
2 + 2
- Create a R script containing the same information without the Markdown syntax
- Q: Given the above two files: what are the adv. of R Markdown?