Square brackets [ ] can be used to subset R objects. When running the code below in the RStudio, you will see that the second element of the vector weights.lb
is printed. (“printing” = showing the object in the console).
Change the code to print the sixth element of the vector.