title: How do I show which variables are not shared by two datasets in R?
body: <p>I have two data sets (A and B), one with 1600 observations/ rows and 1002 Variables/columns and one with 860 observations/rows and 1040 variables/ columns. I want to quickly check which variables are not contained in dataset A but are in dataset B and vice versa. I am only interestes in the column names, not in the onservations contained within these columns.<br />
  I found this great function here: <a href="https://cran.r-project.org/web/packages/arsenal/vignettes/comparedf.html" rel="nofollow noreferrer">https://cran.r-project.org/web/packages/arsenal/vignettes/comparedf.html</a> and essencially I would want to get an output similar to this:<br />
  <a href="https://i.stack.imgur.com/0rgpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0rgpd.png" alt="Variables not shared output" /></a><br /> The code I am trying is:<br /> <code> summary(comparedf(dataA, dataB))</code> <br /> However, the table is not printed because R does a row by row comparision of both data sets and then runs out of space when printing the results in the console. Is there a quick way of achieving what I need here?</p>