# Nested
## Definition(s)
### Context: [[Nexus - Google Analytics Certificate Course]]
#### Sub-context: [[Google Analytics - 7 Data Analysis with R Programming - Module 2 - Programming using RStudio]]
>[! Definition]
>Code that performs a particular function and is contained within code that performs a broader function
## Examples
```r
if 5<7 {
sqrt(36)
}
else 41
# output
# [1] 6
```
## Related
[[Nested Function]]
## 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/)