Question: names
names <- c("Sean", "Brad", "Tony", "Jenny", "Ngoc", "Benny", "Jung-Su", "Mark", "Cameron", "Emily", "Tasha", "Soo-Jin", "Justin", "Craig", "Emma") height <- c(70,72,70,63,61,73,69,71,67,70, 62,64,72,77,68) GPA <- c(2.74,3.98,3.6,4,3.6,3.15,3.87,2.99,3.9, 3.59,3.9,3.94,3.8,4,3.9) major <- c("bio", "bio", "bio","bio","bio","bio","bio", "bio","bio","bio", "chem","chem","chem", "phys", "math") 1) After running all these data vectors, do the names of each vector (names, height, GPA and major) appear in the Environment under the header Values?
2) What is the average height of students in the data set, in centimeters? Round your answer to 2 decimal places. Recall to find the mean of the new variable height.cm, you can run
mean(height.cm)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
