[SOLVED] R Code

REQUIREMENTS:You must work on your assignments individually. Sharing code or results with others is not allowed.Please submit a document (word or PDF) containing a summary of your results and the R code used to generate your results. In your R code, insert comments when appropriate to increase readability. At bare minimum, you should insert question numbers before the code block that you use to answer the question.Q1. Use the below R command to randomly sample 15 data points from beaver1$temp and assign them to a vector, temp. (60 points – 6 points for each sub-question)temp <- sample(beaver1$temp, 15)A. Display the vector, temp. Since values in temp is randomly sampled, it is necessary that you report the data values in temp so that we can evaluate your answers for the downstream questions.B. Compute the mean and median of temp. Convert the data in temp into integers and save them into a vector, temp_int. Compute the mode of temp_int.C. Compute the variance and the standard deviation of temp.D. Compute the five number summary, the interquartile range, and outliers, if any in temp.E. Compute the standardized version (z-scores) of temp.F. Identify values that are less than the first quartile of the data.G. Using indexing, show the expression for accessing the first item and the last one of temp. The code should work for a vector of any size (in another word, no hard coding).H. Create a matrix of size 3 x 5 using the data in temp. The first five values belong to the first row of the matrix. Assign the result to the variable, temp.matrix, and display the result.I. Show the code for displaying the first and the last columns of the matrix. The code should work for matrices of any size (in another word, no hard coding).J. Assign row names for the temp.matrix as Row1, Row2, and Row3. Assign column names as Day1, Day2, …. The code should work for matrices of any size.Q2. Using function data() to load R data set airquality. (40 points – 8 points for each sub-question)A. How many variables are there? How many observations are there?B. Are there missing values in the data set? If so, clean up the data by removing those observations with missing values and save the cleaned data set. Report the number of observations in the cleaned data set.C. Show the mean, median, mode, 1st and 3rd quantiles of variables Temp and Wind in the cleaned data set.D. In the cleaned data set, how many days the Temp is greater than 80 and how many days the Wind is less than 6?E. The numbers in column Temp represent temperature in Fahrenheit. Modify the cleaned data set by adding a new column, TempC, showing temperature in Celsius. Display the new resulting dataframe. The equation to convert Fahrenheit to Celsius: T(°C) = (T(°F) - 32) × 5/9   Request assignment answer

Struggling to find relevant content? Order a custom essay on
[SOLVED] R Code
Let our experts save you the hassle
Order Now
Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with GPA Fix
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Literature
Thank you , this is perfect !
Customer 452795, May 15th, 2022
Human Resources Management (HRM)
great
Customer 452813, February 4th, 2024
Social Work and Human Services
Great Work!
Customer 452587, September 8th, 2021
Human Resources Management (HRM)
Thanks for your support.
Customer 452701, April 24th, 2023
Strategic Management
Thanks for the help, really appreciate it
Customer 452821, September 8th, 2022
Human Resources Management (HRM)
Thanks very much.
Customer 452701, July 26th, 2023
Other
Excellent like always
Customer 452813, January 5th, 2025
English 101
I'm glad i came to you guys
Customer 452519, May 11th, 2021
Human Resources Management (HRM)
Thank you very much.
Customer 452701, September 10th, 2023
Nursing
Completed early! Awesome job!!!!!
Customer 452453, March 8th, 2023
Human Resources Management (HRM)
Excellent Thank you.
Customer 452813, January 11th, 2025
Social Work and Human Services
Awesome, Work! Didn't have to add much to it. Thank You!
Customer 452587, September 7th, 2021
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information