title: Regression of dummy variables in R
body: <p>I am new to R and I am trying to performa regression on my dataset, which includes e.g. monthly sales data of a company in different countries over multiple years.</p>
  
  <p>In other statistical programs, in order to control for quarterly cyclical movement of sales as well as for the regional (country) differences, I would create dummy variables indicating e.g. quarters and countries where sales are made. </p>
  
  <p>My questions:</p>
  
  <p>1)
  I saw that in R you can set a variable type to 'Factor'.
  Do I in this case still need to create dummy variables indicating countries and months/quarters, or is R already treating the factor variables differently and is automatically converting them to dummies in the background?</p>
  
  <p>2)
  If the above is not the case, and I indeed need to recode my values into 0,1 dummies, is there a neat standard way in R to do it?</p>
  
  <p>Thanks a lot for your help and have a nice day!</p>
  
  <p>Trgovec</p>