get_rev_dups.cpp
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
LogicalVector get_rev_dups(NumericVector x) {
return rev(duplicated(rev(x)));
}
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.
Generating citation ...
Generating citation ...
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
LogicalVector get_rev_dups(NumericVector x) {
return rev(duplicated(rev(x)));
}