Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following: 1 . You are given the iris dataset to derive insight from. Using an appropriate library in R , perform the following

Answer the following:
1. You are given the iris dataset to derive insight from. Using an appropriate library in R, perform the following tasks:
-Select petal length and sepal length from the given dataset
-Filter the data to represent only those classes of flowers whose petal length is more than 5.5 units.
-Create a new column flower area to represent the total area occupied by the flower petals.
2. You use a web api to collect data from the Spotify app database, from this Spotify dataset, perform the following tasks:
-Visualize the distribution of a numerical variable song_duration.
-Add a layer of smooth density curve to the above plot.
-Differentiate the plot based on the categorial variable song_genre using different colors.
3. You are given a csv file named heart_disease.csv comprising of information about various factors affecting the presence of heart disease. Perform the following operations:
-Read the CSV file into a dataframe hdf.
-Display the summary statistics for the column cholestrol.
-Create a new column BMI, while also adding the required variables.
Evaluation Rubrics:
Qn No 1. Criteria (Must Have)
-Select library
-Choice of function 1
-Choice of function 2
Qn No 2. Criteria (Must Have)
-Use of histogram
-Density layer
-Color coding
Qn No 3. Criteria (Must Have)
-Converting dataset into data frame
-Summary Statistics
-Adding a new column

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions