Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To begin, create an object called \'Name\' that is a list containing the names o

ID: 3221777 • Letter: T

Question

To begin, create an object called 'Name' that is a list containing the names of all group members. You will need to use quotation marks around each name to identify the input as text. This problem asks you to manually create a list of data values called 'xl' (that's x and one) and perform some basic computations and manipulations with that list. Make sure that you are using the object names EXACTLY as stated here and that the objects are saved to the workspace file that you submit. (a) Create an object named 'xl' that is a list consisting of the five data values {1, 3, 5, 6, 6, 7, 9}. (b) Use the mean function to compute the mean of 'xl' and assign that value to the object 'xlave'. (c) Use the median function to compute the median of 'xl' and assign that value to the object 'xlmed'. (d) Use the sd function to compute the standard deviation of 'xl' and assign that value to the object 'xlsd'. (e) Add the five data values {1, 2, 4, 8, 8} to the end of 'xl' and assign that new list to the object 'xlnew'. (f) Use the length function to compute the number of data values in 'xl' and assign that value to the object 'xllen'.

Explanation / Answer

Please see the complete R snippet as shown below

# a)
x1 <- c(1,3,5,6,6,7,9)

# b) mean function
x1ave <- mean(x1)

# c) median function

x1med<- median(x1)

# d) sd function
x1sd <- sd(x1)

#e) add five data values

x1new <- c(1,3,5,6,6,7,9,1,2,4,8,8)

#f) length of x1new
x1len <- length(x1new)

###### the results are

> x1
[1] 1 3 5 6 6 7 9
> x1ave
[1] 5.285714
> x1med
[1] 6
> x1sd
[1] 2.627691
> x1new
[1] 1 3 5 6 6 7 9 1 2 4 8 8
> x1len
[1] 12

Hope this helps !!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote