Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

So what disadvantages have you witnessed? (specific)

Answered: 1 week ago