I have tens of csv files I want just to read in r the 2nd and 3rd columns of each file and then merge them by the 1st column named gene together while naming each column by its filename this is the columns I want to read
rep.B0.t1month
         gene             count
 SPAP11E10.01             12608
  SPAC20G8.02              1218
 SPBC23G7.12c             10306
  SPBC17G9.09              8635
 SPAC1639.02c              5909
 SPCC1739.08c              5700
  SPCC569.08c              5283
rep.A0.t1month
           gene            counts
       SPAC343.09             19722.      
     SPAP11E10.01             15958
      SPAC20G8.02             13849
     SPBC32F12.09             11276
     SPBC23G7.12c              9054
       SPBC3F6.05              7703
     SPBPB8B6.04c              6553
I want to end up having something like but for tens of files
            gene   rep.A0.t1month   rep.B0.t1month
      SPAC20G8.02        12100         4508
               wt         9825         2625
     SPAP11E10.01         8960         2904
     SPBC32F12.09         8302         3956
     SPBC23G7.12c         7636         1708
      SPCC1919.01         6568         1950
      SPCC4G3.05c         6486         3682
 
    