Question: 1 . Open a new R Markdown file, add a title, and select Word or HTML as your default output format. a . Briefly describe

1. Open a new R Markdown file, add a title, and select Word or HTML as your
default output format.
a. Briefly describe the components of an R Markdown file.
b. What is the advantage of using R Markdown over R Script?
2. Create a sequence from 20 to 200 that increases by steps of 10.
a. Generate a random sample of 5 numbers without replacement.
b. Generate a random sample of 5 numbers with replacement.
3. Create a vector with the values: 71,50,66,100,40. Using the correct functions,
perform the following:
a. Sort vector from lowest to highest and save to a new object name.
b. Repeat the sorted vector 10 times vector-wise.
c. Repeat the sorted vector 10 times element-wise.
d. Find the minimum and maximum values, compute the sum, and
compute the product for this vector.
4. Load the built-in R data frame Orange.
a. What is the structure of this data set?
b. Create a table (in vertical column format) for the variable Tree. Include
columns for proportion and cumulative frequency.
5. Load the built-in R data frame mtcars.
a. Find the data class for the variable mpg. What type of data is it?
b. Using the proper type of graph, display the data for the mpg variable.
Make sure to add a title, axes labels, and choose a color for your graph.

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 Databases Questions!