**New course!**Every coder should learn

**Generative AI!**

0

# Storing values in a vector using R software

How to store values in a vector for example 100 values in a vector in R language

1 Answer

0

How to create vector in R? Vectors are generally created using the c() function. For example:
my_vector <- c(1,2,3,4,5)
Instead of numbers from 1 to 5 you can insert your values into the funcion. If you want 100 values - numbers from 1 to 100:
seq(1, 100, by=1)
For further information, you can find other options in documentation of R language in section about vectors.