Home | News | Documentation | Download

Can RDataFrame::Define two value in a same line?


_ROOT Version:6.14

RDataFrame aData(…)

aData.Define(“x1”, [](double x){return x-1;}, {“x”}).Define(“x2”, [](double x){return x+1;}, {“x”}) …

how can I write these two Define in on line?
like aData.Define{{“x1, x2”}, {}, {“x”});


at least for the moment there is no other way to define two columns than to concatenate the two Define calls as you are doing.

relevant jira ticket: https://sft.its.cern.ch/jira/browse/ROOT-9766



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.