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

Function DataFrame_PushOnEmpty

inst/tinytest/cpp/DataFrame.cpp:198–208  ·  view source on GitHub ↗

issue #1232 [[Rcpp::export]]

Source from the content-addressed store, hash-verified

196// issue #1232
197// [[Rcpp::export]]
198Rcpp::DataFrame DataFrame_PushOnEmpty() {
199 int n = 0;
200 Rcpp::IntegerVector foo(n);
201 Rcpp::CharacterVector bar(n);
202 Rcpp::CharacterVector baz(n);
203
204 Rcpp::List ll = Rcpp::List::create(Rcpp::Named("foo") = foo,
205 Rcpp::Named("bar") = bar);
206 ll.push_back(baz, "baz");
207 return Rcpp::DataFrame(ll);
208}

Callers

nothing calls this directly

Calls 2

NamedFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected