Error in fix.by(by.x, x) : 'by' must specify a uniquely valid columnmergedata <- merge (dataset1, dataset2, by.x=“personalid”) [closed]
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question mergedata <- merge (dataset1, dataset2, by.x="personalid") Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column 回答1: The OP had specified only the by.x . If the column names are the same, then by can be used merge(dataset1, dataset2, by="personalid