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

Function DataFrame_PushReplicateLength

inst/tinytest/cpp/DataFrame.cpp:171–183  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

169
170// [[Rcpp::export]]
171DataFrame DataFrame_PushReplicateLength(){
172 NumericVector u(2);
173 NumericVector v(4);
174 NumericVector x(1);
175
176 u[0] = 1;
177 x[0] = 2;
178
179 DataFrame df1 = DataFrame::create(_["u"] = u);
180 df1.push_back(v, "v");
181 df1.push_back(x, "x");
182 return df1;
183}
184
185// [[Rcpp::export]]
186DataFrame DataFrame_PushZeroLength(){

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected