Why is dot notation used when instantiating an R variable name?

493 Views Asked by At

I came across a piece of code from https://rpubs.com/boyerag/297592

On one line they have the following code:

ndvi.array <- ncvar_get(nc_data, "NDVI")

I do not understand what is the significance of ndvi.array. Is this some special way of creating an array in R? I assumed arrays had to be created using the array function. Since data in netCDF format and essentially each variable is an array based on the dimensions, is this an elaborate way of naming the identifier or does ndvi have some association with a parameter 'array'

1

There are 1 best solutions below

0
On

I am new to R, I didn't realize dots don't mean anything. I assumed it was some weird data structure I didn't know. So from this example, it just creates an R variable named "ndvi.array".