I have this dataframe and I want to convert the values of the first column to another column. This is the data.frame :
scheme value
1 TS:VAT FR46351273019
2 TS:REGNO 35124658210293
I tried to use dcast from the library reshape2 but the result was not satisfying :
> reshape2::dcast(lTS$Identifiers,value ~ scheme)
value TS:REGNO TS:VAT
1 35124658210293 35124658210293 <NA>
2 FR46351273019 <NA> FR46351273019
I need the end result to look like this :
TS:VAT TS:REGNO
1 FR46351273019 35124658210293
Can you please help me ?