MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / sample_dbl

Function sample_dbl

inst/tinytest/cpp/sugar.cpp:1228–1231  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

1226
1227// [[Rcpp::export]]
1228NumericVector sample_dbl(NumericVector x, int sz, bool rep = false, sugar::probs_t p = R_NilValue)
1229{
1230 return sample(x, sz, rep, p);
1231}
1232
1233// [[Rcpp::export]]
1234CharacterVector sample_chr(CharacterVector x, int sz, bool rep = false, sugar::probs_t p = R_NilValue)

Callers

nothing calls this directly

Calls 1

sampleFunction · 0.85

Tested by

no test coverage detected