# Length
## Definition(s)
### Context: [[Nexus - Google Analytics Certificate Course#4.2 Google Analytics - 4 Process Module 2 - Clean data for more accurate insights|Google Analytics Certificate]]
>[! Definition]
>The number of characters in a text string
### 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 Course 7 Programming in R]]
#### Subcontext [[R Programming]]
>[! definition]
>The function that returns the number of elements in a [[Vector|vector]]
## Examples
```R
x <- c(2L, 5L, 10L)
length(x)
# returns the number 3
```
## Related
Function: [[LEN]]
## Resources
## 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/)
The number of characters in a text string @@@ [[Length]]