I’m very new to programming with R. Ive imported SAS data into R. I have 4 data frames (for the sake of my question I only included 2) with some containing the same sequence numbers. I need to extract the sequence number without duplicating it and the information that is with it and combine it with another data.frame (again without duplicating).
I heard the “for” loop might work?
Any help is appreciated
I tried merge and cbind (both aren’t working because of the different length columns of data:
I have:
Data1:
Seq: Age:
12345 35
23456 25
Data2:
Seq: Weight:
12345 178
23456 145
34567 200
I need:
Seq: Age: Weight:
12345 35 178
23456 25 145
34567 200
Els411 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2