Fixed Figure Reference (#339)

Was rendering @{ref:dt-algebra} instead of figure number.
This commit is contained in:
Cooper Morris 2016-08-30 07:55:25 -05:00 committed by Hadley Wickham
parent e08db5b3fb
commit 02ad31606d
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ To find out how many periods fall into an interval, you need to use integer divi
How do you pick between duration, periods, and intervals? As always, pick the simplest data structure that solves your problem. If you only care about physical time, use a duration; if you need to add human times, use a period; if you need to figure out how long a span is in human units, use an interval.
Figure \@{ref:dt-algebra} summarises permitted arithmetic operations between the different data types.
Figure \@(ref:dt-algebra) summarises permitted arithmetic operations between the different data types.
```{r dt-algebra, echo = FALSE, fig.cap = "The allowed arithmetic operations between pairs of date/time classes."}
knitr::include_graphics("diagrams/datetimes-arithmetic.png")