From 97c798de5c495432e2aa85b154e0ae0a7c655ca3 Mon Sep 17 00:00:00 2001 From: HannesOberreiter Date: Fri, 30 Jul 2021 15:48:30 +0200 Subject: [PATCH] Update 25_Rewriting_R_code_in_Cpp.Rmd --- 25_Rewriting_R_code_in_Cpp.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/25_Rewriting_R_code_in_Cpp.Rmd b/25_Rewriting_R_code_in_Cpp.Rmd index 12123f4e..707cc007 100755 --- a/25_Rewriting_R_code_in_Cpp.Rmd +++ b/25_Rewriting_R_code_in_Cpp.Rmd @@ -421,9 +421,9 @@ double medianC(NumericVector x) { } ``` -__[Q2]{.Q}__: `%in%` using `unordered_set` and the `find()` or `count()` methods. +__[Q2]{.Q}__: `%in%` using `unordered_set` and the [`find()`](https://en.cppreference.com/w/cpp/container/unordered_set/find) or [`count()`](https://en.cppreference.com/w/cpp/container/unordered_set/count) methods. -__[A]{.solved}__: We use the `find()` method and loop through the `unordered_set` until we find a match or have scanned the entire set. +__[A]{.solved}__: We use the [`find()`](https://en.cppreference.com/w/cpp/container/unordered_set/find) method and loop through the `unordered_set` until we find a match or have scanned the entire set. ```{Rcpp, eval = FALSE} #include