I'm trying to figure out a way to transpose data and then add that data to a seperate dataframe.
I have
Column 1 | Column 2| Column 3
________________________________
Data 1 | Data 2 | Data 3
And in a seperate data frame I have
actualColumn1| actualColumn2
________________________________
Column 1 | otherData 2
Column 2 | otherData 2
Column 3 | otherData 2
And want to get to:
actualColumn1| actualColumn2|addedData
________________________________
Column 1 | otherData 2 | Data 1
Column 2 | otherData 2 | Data 2
Column 3 | otherData 2 | Data 3
Since the column names from the first dataframe correspond perfectly to the rows in actualcolumn1
. I apologize if I didn't explain this very well. I'm still new to R/Shiny and dataframe manipulation.