Short introduction to regression discontinuity designs (with examples and R code). First of two parts.