Hi,
I am fairly new to coding and am having a bit of trouble at the moment with this concept. I currently have 2 df with similar information, except one has a much greater data count. I need to try and create a new df3 which has the information from both df1 and df2. I need to filter the information based on df1 rows and df2 column names, and have them come out in rows. This is currently what I have done and am finding it difficult to continue.
df3 <- for (i in 1:ncol(df2)
if(df1$row == colnames(df2))
)
I'm unsure if this is even the right approach. Apologies if this is the wrong tag.
Many thanks