Question: Assignment Overview: Perform the following tasks and submit the notebook in . html format for peer review. Step - by - step Instructions: Perform all
Assignment Overview:
Perform the following tasks and submit the notebook in html format for peer review.
Stepbystep Instructions:
Perform all following tasks using an R notebook.
Create a new markdown file by selecting either R Notebook or R Markdown from the dropdown menu in the top, lefthand corner of RStudio. Please name it using the following convention: modpeerreviewyour first nameyour last name.RMD
Add a heading in the notebook to mention the course name, Introduction to Business Analytics with R
Use a code chunk to create a datetime object d from the following character string that represents May : Only use base R Do not use functions from the lubridate package.
Use a new code chunk to check the data type of the d object by printing it If it is in a date format, then it will show up as
If necessary, install the lubridate package using the Package pane in RStudio. In a new code chunk, load the lubridate package.
In a new code chunk, use the appropriate functions from the lubridate package to extract the year, month number, week number and weekday number from the object d created above. Save them as objects name dyear, dmonth, dweek, and dday respectively. Include code to display each of the four objects.
Use a new code chunk to create another datetime object, d using the object d where d is the date days from now. Include code to display d
Finally, use a new code chunk to calculate and display the difference between d and d using the difftime function and check whether the difference is days.
For steps through please add some text before each code chunk to explain the purpose of the code chunk as briefly as possible. Please do not use more than three sentences for each explanation.
Knit the rmd notebook file to an HTML file and submit the HTML file for peer review. Name the HTML file as modpeerreviewyour first nameyour last name.html
How to Knit Rmd to html
In RStudio, click on the dropdown menu next to Preview button.
In the dropdown menu, select "Knit to HTML
How to submit:
Click on the Submission tab and submit the html file for peer review.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
