Skip to content

Note that this notebook was automatically generated from an RDocumentation page. It depends on the package and the example code whether this code will run without errors. You may need to edit the code to make things work.

if(!require('swirl')) {
    install.packages('swirl')
    library('swirl')
}
| Create a function called f that takes one argument, x, and
| returns the value of x squared.

> submit()

| You are quite good my friend!