Vectors
Title
Question
What is the usefulness of using vectors? Is there any other type that we can use instead of vectors?
R Introduction-to-basics-of-R 06-07 min 40-50 sec
Answers:
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.
Login to add comment