# RDataFrame copy assignment issues

**URL:** <https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420>\
**Category:** Newbie\
**Tags:** rdataframe\
**Created:** [January 23, 2019, 10:28pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420 "2019-01-23T22:28:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaiderAbidi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/96bed5/32.png) [@HaiderAbidi](https://root-forum.cern.ch/u/HaiderAbidi)\
**Post date:** [January 23, 2019, 10:28pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/1 "2019-01-23T22:28:26Z")

</div>

Hi,

I am trying out the new RDataFrame and moving some of my current analysis code to use it.

However, in trying to implement this, I ran into a copy assignment issue. I am attaching a simple example to basically recreate what I am trying to do. And I am copying the error below:

```auto

Processing simpleExample.cxx...
In file included from input_line_10:1:
/Users/Haider/ATLAS/sw/H4lCouplingWorkspaces/simpleExample.cxx:12:20: error: object of type 'ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager, void>' cannot be assigned because its copy assignment operator is implicitly deleted
        augDataSet = augDataSet.Define("newCol2", "newCol*2");
                   ^
/Users/Haider/root_v16p14/build/etc/../include/ROOT/RDFInterface.hxx:130:16: note: explicitly defaulted function was implicitly deleted here
   RInterface &operator=(const RInterface &) = default;
               ^
/Users/Haider/root_v16p14/build/etc/../include/ROOT/RDFInterface.hxx:110:35: note: copy assignment operator of 'RInterface<ROOT::Detail::RDF::RLoopManager, void>' is implicitly deleted because field 'fProxiedPtr' has no copy assignment operator
   const std::shared_ptr<Proxied> fProxiedPtr; ///< Smart pointer to the graph node encapsulated by this RInterface.

```

So, I was wondering what would be ideal way to accomplish something like this with the new RDataFrame philosophy? I can think of a few ways of working around it, but they all feel like hacks rather than a proper way to do. Probably missing something super basic about new data structure.

I tried to look at examples and there the dataframe is sequentially build upon each other 😕

Thanks for the help,  
Haider

[simpleExample.cxx](https://root-forum.cern.ch/uploads/default/original/3X/1/3/136a5e13dda4db1b064b6de48aaf316853748839.cxx) (457 Bytes)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [January 24, 2019, 9:31am UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/2 "2019-01-24T09:31:11Z")

</div>

Hi Haider,

what version of ROOT is this one?

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![HaiderAbidi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/96bed5/32.png) [@HaiderAbidi](https://root-forum.cern.ch/u/HaiderAbidi)\
**Post date:** [January 24, 2019, 2:30pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/3 "2019-01-24T14:30:02Z")

</div>

Hi,

It is 6.14/06

Thanks  
Haider

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [January 24, 2019, 3:39pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/4 "2019-01-24T15:39:05Z")

</div>

Hi Haider,

this has been solved in release 6.16: [https://root.cern/content/release-61600](https://root.cern/content/release-61600)

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![HaiderAbidi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/96bed5/32.png) [@HaiderAbidi](https://root-forum.cern.ch/u/HaiderAbidi)\
**Post date:** [January 24, 2019, 7:20pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/5 "2019-01-24T19:20:05Z")

</div>

Hi,

Just tired the new release and it works there!

Thanks for the help!  
Haider

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [January 24, 2019, 7:47pm UTC](https://root-forum.cern.ch/t/rdataframe-copy-assignment-issues/32420/6 "2019-01-24T19:47:51Z")

</div>

Great! Thanks for trying the latest release!
