# Variable$get

### Variable$<mark style="color:purple;">get</mark>(***wait\_for\_statistics=FALSE***) → self

Fetches the variable, after which variable$properties will contain a named list with entries corresponding to the properties on the [variable resource definition](https://docs.redivis.com/api/resource-definitions/variable). Will raise an error if the variable does not exist.

### **Returns:**

**self (a** [**Variable**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/variable)**)**

### Examples:

```r
table <- redivis$organization("Demo")$dataset("iris_species")$table("iris")

variable <- table$variable("sepalLengthCm")

variable$exists() # -> TRUE
variable$get() 

print(variable$properties)

{
	"kind": "variable",
	... (see variable resource definition)
}
```
