Question

Write the code to return the output: Code: id <- c(5, 6, 7, 8, 9) prod...

Write the code to return the output:

Code:

id <- c(5, 6, 7, 8, 9)

prod <- c("F", "H", "B", "S", "D")

units <- c(12, 19, 44,26, 43)

df <- data.frame(id, prod, units)

Output must be:

[1] 12 19 44 26 43

Homework Answers

Answer #1

id <- c(5, 6, 7, 8, 9)

prod <- c("F", "H", "B", "S", "D")

units <- c(12, 19, 44,26, 43)

df <- data.frame(id, prod, units)

##below line is the answer

df$units

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write the code to return the output: Code: mylist <- list(c(2020,2021),c("Jan", "Feb"), c("Mon", "Thurs")) Output must...
Write the code to return the output: Code: mylist <- list(c(2020,2021),c("Jan", "Feb"), c("Mon", "Thurs")) Output must be: $Year [1] 2020 2021 $Month [1] "Jan" "Feb" $Day [1] "Mon" "Thurs"
A:  8   6   5   8   9   5   3   7   9   3   5   7   9   3   6   4  ...
A:  8   6   5   8   9   5   3   7   9   3   5   7   9   3   6   4   5   8   5   3   9 B:  3   7   9   3   5   7   9   6   8   3   5   9   6   7   8   3   7   9   5   2   8 C:  5   9   6   7   8   3   7   9   5   2   8   8   6   5   8   9   5   4   7   8   5 Using the data from the Production Run Population table what type of graph is not appropriate to...
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file...
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file called synch.txt. Then it will create two separate threads, Thread-A and Thread-B. Both threads will open synch.txt and write to it. Thread-A will write the numbers 1 - 26 twenty times in nested for loops then exit. In other words, print 1 - 26 over and over again on separate lines for at least 20 times. Thread-B will write the letters A - Z...
Path Activity to tm tp te=(to+4tm+tp)/6 Path total A-C-F-H A 3 4 5 4 19 C...
Path Activity to tm tp te=(to+4tm+tp)/6 Path total A-C-F-H A 3 4 5 4 19 C 2 3 10 4 F 3 5 7 5 H 2 6 10 6 B-D-F-H B 5 7 9 7 23 D 2 5 8 5 F 3 5 7 5 H 2 6 10 6 B-E-G B 5 7 9 7 21 E 1 7 7 6 G 7 8 9 8 The critical path is B-D-F-H. Hence, the expected duration of project...
Let U = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14}, A = {5,...
Let U = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14}, A = {5, 7, 9, 11, 13}, B = {6, 8, 10, 12, 14}, and C = {5, 6, 8, 9, 12, 13}. List the elements of each set. (Enter your answers using roster notation. Enter EMPTY or ∅ for the empty set.) (a)    Ac ∩ (B ∩ C c) (b)    (A ∪ Bc) ∪ (B ∩ C c) (c)    (A ∪ B)c ∩ C c
A = [1 2 3 4 5 6 7 8 9 10 11 12 13 14...
A = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] In MATLAB. Use a fully vectorized code (ie. no loops) to determine when the numbers have increased to at least 15 in the above array. Report answer to command window.
Given ID X Y A 10 15 B 4 5 C 13 16 D 7 9...
Given ID X Y A 10 15 B 4 5 C 13 16 D 7 9 E 13 4 F 1 5 What is the variation in Y that can be explained by X? please explain A) 50.7 B) 22.7 C) 36.3 D) 105.7 E) 91.3
Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and let the...
Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and let the digits of your ID to be the elements of set A. For example if my ID is 21743911, then set A would be {2,1,7,4,3,9}. Write the bit string that represents set A above. Let set B = {2, 3, 5, 6, 7, 10}. Write the bit string that represents this set B. What is the bit string for the difference of A and B?...
PHP Question: _____________________________________________ Write the PHP code to list out all of the dates of the...
PHP Question: _____________________________________________ Write the PHP code to list out all of the dates of the current month and assign them to their given days. As an example, for the month of October 2020, the output should look something like this: October 2020       Monday: 5, 12, 19, 26 Tuesday: 6, 13, 20, 27 Wednesday: 7, 14, 21, 28 Thursday: 1, 8, 15, 22, 29 Friday: 2, 9, 16, 23, 30 Saturday: 3, 10, 17, 24, 31 Sunday: 4,...
For the following set of scores: 8 6 7 5 4 10 8 9 5 7...
For the following set of scores: 8 6 7 5 4 10 8 9 5 7 2 9 9 10 7 8 8 7 4 6 3 8 9 6 a. Construct a frequency distribution table. b. Sketch a histogram showing the distribution. c. Describe the distribution using the following characteristics: (1) What is the shape of the distribution? (2) What score best identifies the center (average) for the distribution? (3) Are the scores clustered together, or are they spread...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT