Skip to main content
added 15 characters in body
Source Link
Troy
  • 8.7k
  • 33
  • 33

Try:

data <- merge(data.jan,data.frame(ID=data.feb$ID), by="ID")

although I haven't tested it since no data, but if you just join the ID col from Feb, it should only filter out anything that isn't in both frames

Try:

data <- merge(data.jan,data.feb$ID, by="ID")

although I haven't tested it since no data, but if you just join the ID col from Feb, it should only filter out anything that isn't in both frames

Try:

data <- merge(data.jan,data.frame(ID=data.feb$ID), by="ID")

although I haven't tested it since no data, but if you just join the ID col from Feb, it should only filter out anything that isn't in both frames

Source Link
Troy
  • 8.7k
  • 33
  • 33

Try:

data <- merge(data.jan,data.feb$ID, by="ID")

although I haven't tested it since no data, but if you just join the ID col from Feb, it should only filter out anything that isn't in both frames