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

11th Oct 2018, 5:46 PM
Aaron Muthami
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.
15th Jan 2019, 4:59 AM
Mariusz Mazepa
Mariusz Mazepa - avatar