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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started