[1] 9.6
[1] 2.6
[1] 10
[1] 2.22
[1] 2.7 3.0 3.1
[1] 45.4
You have data on the length, width, and height of 10 individuals of the yew Taxus baccata stored in the following vectors:
shrub_length <- c(2.2, 2.1, 2.7, 3.0, 3.1, 2.5, 1.9, 1.1, 3.5, 2.9)
shrub_width <- c(1.3, 2.2, 1.5, 4.5, 3.1, 2.6, 1.8, 0.5, 2.0, 2.7)
shrub_height <- c(9.6, 7.6, 2.2, 1.5, 4.0, 3.0, 4.5, 2.3, 7.5, 3.2)
Copy these vectors into an R script and then use R to determine the following:
[1] 9.6
[1] 2.6
[1] 10
[1] 2.22
[1] 2.7 3.0 3.1
[1] 45.4