Question: 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

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!