So say I had my dataframes as outlined below:
proteinid<-c('Replication Factor','Ferredoxin','Stabilin','DNA-binding') untreated<-c(0.1,-3,2.1,3) treated<-c(2.1,-1,0.3,2) proteinid2<-c('Replication Factor','Ferredoxin','Stabilin') protein_function<-c('Transcription','ETC','Protein Folding') numeric_data<-data.frame(proteinid,untreated,treated) protein_roles<-data.frame(proteinid2,protein_function)
And I wanted to merge the two data frames, but I know one data.frame has three rows and the other has four. So I know this would leave some of the columns blanks, which is fine and what I want. When I try to just combine them I get an error due to the difference in the number of rows. Ideally I will be doing this on a much larger dataset imported from excel, so I wanted to see if there was a quick way to do this.