According to the website https://www.datamentor.io/r-programming/vector/, Vector is a basic data structure in R. It contains elements of the same type. You can take an analogy from coordinate geometry, where we use (x, y) to denote a point in 2D space and (x, y, z) to denote a point in 3D space. All of the elements x,y, and z are numeric values. For more information, we suggest you should visit the Additional Material of the tutorial Creating Matrices using Data Frames on this website.
There are several data types in R, as given in the Additional Material of the tutorial Data Types and Factors. Based on our tasks, we choose one of them. To understand data types in detail, we request you to watch the tutorial Data Types and Factors in this series.