Question: Make an R Markdown file. When knitted, the output (one of Word, PDF, or HTML) should have the following components: (a) Title (b) Author (c)
Make an R Markdown file. When knitted, the output (one of Word, PDF, or HTML) should have the following components:
(a) Title
(b) Author
(c) Date
(d) Section One
(e) Section Two
Under section one, create a data frame, named DF, consisting of columns "Student", "Quiz1", and "Quiz2". The data frame should have 10 rows filled with entries you decide. Report the mean score of each quiz. Hint: use the apply() function.
Under section two, create a function that prints the first n consecutive terms of the sequence determined by the recursion: f(k+2) = f( k) + f(k+1), k = 1, 2, ..., with f(1) = f(2) = 1. Demonstrate your function with an example. Hint: use a for loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
