I was studying about sequencing of vector in R and I came across a problem that I want to generate the vector of fixed length and I want this by not using colon operator in R

for example a vector of length of 30

but I am able to generate by using

x<-1:30

# How to generate the vector of fixed length in R

**sid100158**#1

**anon**#2

@sid100158 Please refer to the following thread: How to create a empty vector with fixed length in R