Using the R Sandbox

Using the R Sandbox

The R Sandbox 

The R Sandbox is a separate R window you can use to experiment with R code and play around with ideas from the course. It comes pre-loaded with the base R packages and all of the packages and datasets we reference in the textbook. 

R Sandbox

Accessing the R Sandbox 

The R Sandbox can be found in the "Resources" section of the textbook.

How do I submit my code? 

You might notice that there is no Submit button. This is because answers in the R Sandbox are not evaluated - in fact, we don’t even see them! So feel free to make mistakes, play around with ideas, and have fun with data! 


    • Related Articles

    • R Objects

      R Objects Overview In R, everything is an object. Data, functions, models, and even results of calculations are all stored as objects. Understanding R objects is fundamental to working with data, writing reproducible code, and performing statistical ...
    • Arguments (in R Functions)

      Arguments (in R Functions) R function arguments are the inputs provided to a function that determine how it runs and what results it produces. Arguments are placed inside the parentheses of a function call and may represent data, options, or control ...
    • Not Connecting to Server

      If you hit the "Connect" button for the R coding exercise windows but it will not connect to the server, please note the following: This error should be rare and should not persist for more than a few minutes. Please do not continue to hit "Connect" ...
    • R Function

      An R function is a reusable block of code in the R programming language that performs a specific task. Functions accept inputs (called arguments), execute a set of instructions, and return an output. They are fundamental to writing efficient, ...
    • factor (in R)

      Factor (in R) is a type of R object that is a categorical variable.