Question

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”.

08 Sep 2023
Answer :
Word Count : 412

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

____ ______ ______ _______ ___ ______.
_______ _________ ___ _________ ___ ________ ____ ________.
________ ________ _______ _________ _____ ___ _______ _________ _____ _______ ________ ______.
________ ___ __________ ____ _________ _____ _______ ______ _________ __________.
__________ ______ ____ _____ _______ _______ ______ _________ __________ ____ _________ _______.
_________ __________ ___ ________ __________ ____ _______ ________ __________ _____ ____.
___ __________ ___ _________ ______.
__________ _____ ___ ______ __________ ______ ______ ____ _____.
________ _________ ___ ____ ________ _______ _________ __________ ___ _____ ___ ___.
__________ ________ _____ _______ _______ __________ ________ ___ _______ ______ _________.
____ ____ _________ ________ ________ ______ ________ ________.
_____ _________ __________ ____ _______ __________ _________ _____ ________ _______ _____.
_____ ______ _______ __________ ______ __________ ____ __________.
_______ _____ ________ ________ _________ ______ _____ ___ _______ ____ ________ _____.
_______ _______ ____ __________ __________ _______ _________.
___ ____ ________ ____ ____ ___ ________ ________ ____ _____ _____.
_____ _______ ____ __________ ____ ______ _________ __________ ___ ____ __________.
______ __________ ____ __________ _______ _______ ___ ___ ________ ______.
________ __________ ______ ________ ______ _______ ___ ________ ________.
____ ___ ________ _________ _________ _____ _____ _____ _______ ___ ______ ________.
__________ _________ ________ ___ _____ ______ _________ ______ ________ ________.
_________ __________ _______ _________ _________ _________ _______ _______ ____ __________.
_________ ___ __________ _________ _________ __________.
______ _________ _____ ___ ______ ____ ________ ___ ___ ____.
________ ______ ____ ______ ________ __________ ___ _______ ______ ______ ____ _____.
________ ______ _______ _________ ___ ____ _____.
_____ __________ ___ ______ ___ ___.
_____ _______ __________ _______ _____ _______ ____ ________ _____ ___.
___ ____ __________ _____ ________ __________ _____ ______ __________ ___.
_____ _____ ___ ________ ___ ____ _____ __________ ______ ______.
________ ____ ____ _________ ________ ____ _____.
________ ___ ______ _______ ___ ___ _____ ______.
______ __________ ___ _____ ____ _________ __________ __________ __________.
______ __________ ______ _______ ______.
_____ __________ _______ ____ ______ _____ _____ ____ _______ _____ ________ ________.
______ ___ ____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MST 15 2023 - The following data relates to the number of items produced per shift b | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→