Question: you need to download r studio below packages This problem set uses theheightsdataset from the dslabs package, which consists of actual heights (in inches) of
you need to download r studio below packages
This problem set uses theheightsdataset from thedslabspackage, which consists of actual heights (in inches) of students in 3 Harvard biostatistics courses.
Install thedslabspackage from CRAN, then load thedslabspackage into your workspace with thelibrary()command.
After loading the package, load the datasetheightsinto your workspace:
data(heights) heights
Q1: Object Classes
Match each object to its corresponding class.(select options like character string,data.frame,factor vector,integer,list,numeric,numeric vector)
heightsdataset select option
sexcolumn select option
heightcolumn select option
"Male" select option
75.00000 select option
Q2: Object Dimensions
How many rows are in this dataset?
Q3: Indexing - 1
What is the height in row 777?
Q4: Indexing - 2
Which of these pieces of code returns the sex in row 777?
Check all correct answers.
heights$sex[777]
heights[1, 777]
heights[777,1]
Q5: Maximum and Minimum
What is the maximum height in inches?
Which row has the minimum height?
Q6: Summary Statistics
What is the mean height in inches?
What is the median height in inches?
Q7: Conditional Statements- 1
What proportion of individuals in the dataset are male?
Q8: Conditional Statements - 2
How many individuals are taller than 78 inches (roughly 2 meters)?
Q9: Conditional Statements - 3
How many females in the dataset are taller than 78 inches?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
