Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions: Write an R script and an R markdown that perform the following operations in the order listed. - - At the beginning of each
Instructions:
Write an R script and an R markdown that perform the following operations in the order listed.
At the beginning of each task, write a comment marking the task number. For example
# Task
In the markdown file, include the code for each task in one block.
Name the files as: labR and labRmd for markdown
After you complete the markdown file, using the knit function to create the HTRM report that contains both the code and the output
Tasks:
Learning RStudio environment: examine the panes: source editor, console, workspace browserobjectsvariables and plots. Make sure you understand the purpose and content of each pane. No script needed for this task
Set the working directory to your Lab folder. No script needed for this task
Create vectors: studentID, firstName, lastName, passFail. Each vector should contain appropriate type of data and at least data elements. Print each vector, check the type and structure of each vector.
Create a data frame named studentTable using the vectors that you created in task Print the data frame and check the structure of the data frame.
Create matrices. Each matrix should contain at least data elements and at least rows and columns. The two matrices should contain different types of data. Print each matrix. Check the type and structure of each matrix.
Create arrays. Each array should contain at least data elements and at least tables. The two arrays should contain different types of data. Print each array. Check the type and structure of each matrix.
Create list. The list should have at least vectors. Each vector should have at least data elements. The vectors should have different length and contain at least different types of data. Print the list and check the structure of the list.
Create another list containing the list you create in task Print the list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started