Storing values in a vector using R software | Sololearn: Learn to code for FREE!

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

10/11/2018 5:46:15 PM

Aaron Muthami

1 Answer

New 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.