
Last chance! 50% off unlimited learning
Sale ends in
When a swirl question requires the user to edit an R script, the
submit()
function allows the user to submit their response.
submit()
# NOT RUN {
| Create a function called f that takes one argument, x, and
| returns the value of x squared.
> submit()
| You are quite good my friend!
# }
Run the code above in your browser using DataLab