R × Python

Computational companion

Read the method.
Run the example.

  • Chapter scriptsR and Python files organised by chapter, mirroring the printed code boxes.
  • WorkbooksRunnable workbooks for reproducing the worked examples end to end.
  • DatasetsThe data behind the examples, ready to load in either language.
  • QR targetsEach printed QR code opens a small, box-level source file, with the human-readable link beside it.
R
fit <- lm(price ~ living_area + monthly_fee,
          data = apartments)
Python
fit = smf.ols(
  "price ~ living_area + monthly_fee",
  data=apartments
).fit()

Same model · two ecosystems