12 std::vector<Double_t> sv(3);
27 std::list<std::string> names;
28 names.push_back(
"v1");
29 names.push_back(
"v2");
30 names.push_back(
"v3");
39 std::cout<<
"-----------Printing Results---------\n";
42 std::cout<<
"------------------------------------\n";
52 std::cout<<
"------------------------------------\n";
56 std::cout<<
"------------------------------------\n";
57 r<<
"df2<-data.frame(v1=c(1,2,3),v2=c('a','b','c'),v3=c(3,2,1))";
65 std::cout<<
"------------------------------------\n";
82 std::cout<<
"------------------------------------\n";
83 std::cout<<
"nrows = "<<df2.GetNrows()<<std::endl;
84 std::cout<<
"ncols = "<<df2.GetNcols()<<std::endl;
89 df2[
"v5"]>>df[
"var1"];
94 std::cout<<
"-----Cast---"<<std::endl;
96 r[
"df=data.frame(v1=c(0.1,0.2,0.3),v2=c(0.4,0.5,0.6))"]>>dfm;
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.
static TRInterface & Instance()
static method to get an TRInterface instance reference
void Print(Option_t *name="") const
Print the matrix as a table of elements.
Rcpp::internal::NamedPlaceHolder Label
This is a class to create DataFrames from ROOT to R