Question: Suppose a dataset called Data with numeric columns ColA, ColB, ColC (not necessarily in that order) is imported into Rstudio. State code that could be

Suppose a dataset called "Data" with numeric columns "ColA", "ColB", "ColC" (not

necessarily in that order) is imported into Rstudio. State code that could be used to accomplish

each of the following. Note that your code may be more than 1 line.

(a) Have Rstudio output the values in the last 3 rows appearing in "ColC".

(b) Have Rstudio add a new column called "ColD" to "Data" which contains the sum of the

elements in "ColA" and "ColB" along each respective row.

(c) Have Rstudio generate a histogram for values contained in "ColC" such that the title of your

histogram is "_______'s Histogram" where the blank is filled in with your name. The

histogram's bars should be filled with alternating green and red bars.

(d) Create one new dataset called "Data2" which contains only those rows of "Data" where the

value in "ColA" is larger than the value in "ColB".

(e) Use "ColB" as a sample to estimate the standard deviation of a population which is known

to have ? = 10.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!