# Vector
## Definition(s)
### Context: [[Nexus - Google Analytics Certificate Course#7.2 Google Analytics - 7 Data Analysis with R Programming - Module 2 - Programming using RStudio Programming using RStudio|Google Analytics Certificate - R programming]]
#### Sub-context
>[! Definition]
>A group of data elements of the same type stored in a sequence in [[R Programming|R]]
## Examples
```r
vec_1 <- c(13,12,48.5,17,101,3,2.5)
# calling the variable
vec_1
# returns
[1] 13.0 12.0 48.5 17.0 101.0 3.0 2.5
```
## Related
[[Atomic Vector]]
[[Numeric Vector]]
## Resources
[R for Data Science Internet edition: Ch. 20 Vectors](https://r4ds.had.co.nz/vectors.html#vectors)
- good write up on basic vectors for R
## Flashcards
The below code are generated for use with [Spaced Repetition plugin](https://github.com/st3v3nmw/obsidian-spaced-repetition/) [docs](https://www.stephenmwangi.com/obsidian-spaced-repetition/)
A group of data elements of the same type stored in a sequence in [[R Programming|R]] @@@ [[Vector|R-vector]]
The R function used to create vectors @@@ `c()`
The R function used to create lists @@@ `list()`
The R function to determine data structure of a vector @@@ `str()`