O'Reilly logo

Spatial Analytics with ArcGIS by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Variables and assignment

In the R programming language, like other languages, variables are given a name and assigned data. Each variable has a name that represents its area in memory. In R, variables are case sensitive, so use care in naming your variables and referring to them later in your code. There are two ways in which this can be done, and both are illustrated in the following screenshot:

Let's take a look at the following ways in which we can use to name a variable and assign data to it:

  1. In the first code example, a variable named x is created. The use of a less-than sign immediately followed by a dash then follows the variable name. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required