In R, I\'d like to retrieve a list of global variables at the end of my script and iterate over them. Here is my code
#declare a few sample variables a<-1
You can use class(x) to check the variable type. If requirement is to check all variables type of a data frame then sapply(x, class) can be used.