14 std::vector<Double_t>
v2 {0.101, 0.202, 0.303};
15 std::array<Int_t,3>
v3{ {1,2,3} };
16 std::list<std::string> names {
"v1",
"v2",
"v3"};
23 auto &
r = TRInterface::Instance();
27 TRDataFrame df1(Label[
"var1"]=
v1,Label[
"var2"]=
v2,Label[
"var3"]=
v3,Label[
"strings"]=names);
50 r<<
"df2<-data.frame(v1=c(0.1,0.2,0.3),v2=c(3,2,1))";
62 df2[
"v3"]<<df1[
"strings"];
69 df2[
"v3"]>>df1[
"var1"];
This is a class to create DataFrames from ROOT to R.
void Print(const Char_t *label="")
Method to print the dataframe in stdout or a column given the label.
namespace associated R package for ROOT.