title: Combining two dataframes keeping all columns
body: <p>What I would like to do is combine 2 dataframes, keeping all columns (which is not done in the example below) and input zeros where there are gaps in the dataframe from uncommon variables. </p>
  
  <p>This seems like a plyr or dplyr theme. However, a full join in plyr does not keep all of the columns, whilst a left or a right join does not keep all the rows I desire. Looking at the dplyr cheatsheet (<a href="http://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf" rel="nofollow">http://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf</a>), a full_join seems to be the function I need, but R does not recognise this function after succesfully loading the package. </p>
  
  <p>As an example:</p>
  
  <pre><code>col1 &lt;- c("ab","bc","cd","de")
  col2 &lt;- c(1,2,3,4)
  df1 &lt;- as.data.frame(cbind(col1,col2))
  col1 &lt;- c("ab","ef","fg","gh")
  col3 &lt;- c(5,6,7,8)
  df2 &lt;- as.data.frame(cbind(col1,col3))
  library(plyr)
  Example &lt;- join(df1,df2,by = "col1", type = "full") #Does not keep col3
  library(dplyr)
  Example &lt;- full_join(df1,df2,by = "col1") #Function not recognised
  </code></pre>
  
  <p>I would like the output...</p>
  
  <pre><code>col1 col2 col3
  ab    1    5
  bc    2    0
  cd    3    0
  de    4    0
  ef    0    6
  fg    0    7
  gh    0    8
  </code></pre>