You may have heard the saying “Google is your best friend” before, but in the context of programming, this is definitely the case. R has many, many features, functions, options and so on, it is impossible to learn all of them by heart of course. Therefore, it is very often extremly helpful to type your question into Google (or any other search engine).
At this point, you have basically zero or close to zero knowledge about programming in R, nevertheless, we are convinced that you can actually already solve this very first exercise by just using Google.
We have stored some numbers into an object called a vector.
vector <- c(1,20,15,13,17,18,12,5)
Now, we want you to find the maximum value in this vector by using the correct function in R and applying this function to this vector. Use Google to find out how to to select the maximum value in a vector in R. Submit your solution below.