Fix reference to figure (#446)

This commit is contained in:
Colin Gillespie 2016-10-03 13:42:42 +01:00 committed by Hadley Wickham
parent 41ff280a08
commit 3580d98300
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ There are two types of vectors:
1. __Lists__, which are sometimes called recursive vectors because lists can
contain other lists.
The chief difference between atomic vectors is that atomic vectors are __homogeneous__, while lists can be __heterogeneous__. There's one other related object: `NULL`. `NULL` is often used to represent the absence of a vector (as opposed to `NA` which is used to represent the absence of a value in a vector). `NULL` typically behaves like a vector of length 0. Figure \@ref{fig-datatypes} summarises the interrelationships.
The chief difference between atomic vectors is that atomic vectors are __homogeneous__, while lists can be __heterogeneous__. There's one other related object: `NULL`. `NULL` is often used to represent the absence of a vector (as opposed to `NA` which is used to represent the absence of a value in a vector). `NULL` typically behaves like a vector of length 0. Figure \@ref(fig:datatypes) summarises the interrelationships.
```{r datatypes, echo = FALSE, out.width = "50%", fig.cap = "The hierarchy of R's vector types"}
knitr::include_graphics("diagrams/data-structures-overview.png")