I tried searching and found similar-ish problems, but not the same problem. This seems like this should be somewhat common so I probably am just missing it.
I have multiple CSV files I am reading in with read.table. I want to merge these together such that rows with the same ID column are cbind() together, and the rest are left blank. An example below probably better illustrates
File 1
UserID    val1     val2    
  1                  2
  2        1         3
File 2
UserID    col1  
  1         a
  3         z
File 3
UserID    feat1    feat2
  1        Hi       Hello
  3        Moshi    Moshi
Desired Result
UserID      val1      val2    col1     feat1    feat2
1                      2        a       Hi       Hello
2            1         3
3                               z       Moshi    Moshi
I don't want it to add zeroes for missing values. I don't want it to fill anything with NAs, if possible.
I just want to combine datasets (3+ in all cases, average of 10) on a UserID column, keeping everything else the same.
I'm sure there is a tool for this, I just can't find it.
 
     
    