Home | News | Documentation | Download

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


#1

_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”});


#2

Hi,
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.

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

Cheers,
Enrico