Subsection 1 Interactive R Cells (Sage)
Throughout the book, youβll find interactive R code cells powered by SageMath. These allow you to run R code directly in your browser without installing any software. Each cell is self-contained and runs independently.
Important: Each Sage cell starts fresh - variables from one cell are not available in other cells. This is why youβll see data creation code repeated in cells throughout an investigation.
Advantages:
-
No software installation required
-
Works on any device with a web browser
-
Great for quick explorations and learning concepts
Limitations:
-
Cannot load external data files or URLs directly
-
Best suited for small to medium datasets (created inline)
-
Each cell runs independently (no persistent workspace)
