In R programming, a vector consist of data elements
of the same basic data type in sequence. These elements are called components
in vector.
>x<-c(10,20,30)
>x
[1] 10 20 30
To know the total number of elements of a vector
type “length(variable)”.
>length(x)
[1] 3
Vector can be deleted by simply storing “NULL” to
the existing vector.
>x<-NULL
>x
NULL
.