The following data relates to the number of items produced per shift by two workers for a number of days.
| Worker A | 19 | 22 | 24 | 27 | 24 | 18 |
| Worker B | 26 | 37 | 40 | 35 | NA | NA |
(a) Write R command to create a list named LT with worker’s data. Also, after creating
the list, do the following tasks:
(i) Use a suitable loop function to compute the mean of number of items
produced by each worker in a single line command.
(ii) Extract the worker A data from it by using two different approaches.
(b) Write R command to create a data frame named DF with worker’s data and do the
following tasks:
(i) Use suitable function to remove NA from the data and then create a scatter
plot.
(ii) Write the known data obtained in step (i) to a .txt file named “WORK”.
Here are the R commands to accomplish the tasks mentioned in your question:
(a) Create a list named LT with worker's data and compute the mean of items produced by each worker:
# Worker A and B data
workerA <- c(19, 22, 24, 27, 24, 18)
workerB <- c(26, 37, 40, 35, NA, NA)
# Create a list named LT with worker's data
LT <- list(WorkerA = workerA, WorkerB = workerB)
# (i) Compute the mean of items produced __________ ___ __________ _________ ________ ___ _______ _________.
_________ _________ ________ ____ ____ ______ _______ ________ ___.
_____ ____ ________ __________ ____ _______ __________ ___ ______ ___.
________ _________ ______ ______ _________ _______ _____ ___ _____ ____ ______.
__________ __________ ______ ____ ____.
__________ ________ ____ _______ _____ ___ ___ _______ _____.
_________ _______ _____ _____ ____ ____ ____ ________ __________ ____ ___ ____.
___ ___ __________ _______ ________ ____.
___ _____ ____ _________ ___.
______ ______ __________ _________ _____ _________ ____ _______ __________ _______.
__________ __________ ______ ________ ______ _________ ____ __________ _____ ______ ____.
___ _______ ________ __________ _____ ______ ______ ______ ______.
_________ _____ ___ __________ _________ ______ __________.
_______ ________ ___ ___ __________ _________ _______ __________ ________ _____ _______.
____ ____ ____ ______ ______ _________ ________ ___ ________ _____ _______.
________ _________ ________ ____ ____ _________ _______ _______ ______.
______ ____ ________ __________ _____ _________ ______ ________ _____ _________ _____ _________.
_______ __________ _________ __________ __________ ___ _______ _____ __________ _________ ____ ______.
____ ____ ____ ____ _______ _____ _____.
____ __________ ______ ________ _____ ________ _______ _____ _______ ________ _______.
_______ ___ ________ ___ _______ __________ ______.
__________ _________ ____ ____ _________ ____ ______ ______ ___ _______ _______.
_______ _________ ____ _______ ________ _________.
_______ ____ _______ _________ _________ _________ ______ ____ _____ _______.
_____ _________ ________ ___ ________ __________ ___ _______ ______ ________.
____ __________ __________ ______ ___ __________ _______.
__________ ____ _______ ___ ________ ____.
_______ _________ _________ ________ _____ _____ __________ ___ _______ ____.
___ ___ ___ ______ __________.
_____ _____ ________ _________ _______ _____ _________ ______ _________ ______.
_______ _________ ___ _________ ________ ___ ________ ____.
__________ __________ ________ ________ _________ ____ _________ __________ ____ _______.
__________ ____ ____ _______ _______.
__________ ________ ________ ___ _____ _____ _________ ____ ________ ___.
_______ ___ ________ ______ ___ _______ __________ _________ _______ ______ ____.
______ ___ __________ __________ __________ ___ _________ ________ _____ ___.
____ _________ ___ ___ ____ _________ __________.
_________ __________.
Get Full Answer on WhatsApp