Access the last value of a given vector in R
In this article, we will discuss how to access the last value of a given vector in R Programming Language. So let's begin by first creating an example vector because to get the last value of a vector we need to first create the vector. R vec1 <- c("John" , "Smith", "Tina" , "Brad" , "Emma") print