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

Function sample_chr

inst/tinytest/cpp/sugar.cpp:1234–1237  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

1232
1233// [[Rcpp::export]]
1234CharacterVector sample_chr(CharacterVector x, int sz, bool rep = false, sugar::probs_t p = R_NilValue)
1235{
1236 return sample(x, sz, rep, p);
1237}
1238
1239// [[Rcpp::export]]
1240ComplexVector sample_cx(ComplexVector 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