title: How do I create a spatial contiguity dummy for my regression in R?
body: <p>Currently, I am trying to set up a dummy for regions that are contigious (1 if adjacent, 0 if not) in my regression. Sadly, I have just find answers for a spatial weight matrices, but that is not what I am looking for, because I am looking for a new variable (Contiguity) in my regression.</p>
  <p>My data table would look like this (Gravity-Model):</p>
  <p>Region_1; Region_2; Distance; Contiguity Dummy</p>
  <p>I have information about the geometry of each region.</p>
  <p>Thank you very much in advance for any kind of help!</p>
  <p>Best regards,
  Christian</p>