How do you call variable names? To call a variable from a data set, you have two options: You can call var1 by first specifying the name of the data set (e.g., mydata ): > mydata$var1 > mydata[,”var1″] Alternatively, use the function attach() , which attaches the data set to the R search path. You can now refer to variables by name. How do you call a function named my function?