Is there a way to list the classes of all objects in my environment? I tried
asd <- iris
sapply(ls(), function(x) class(x))
## asd
## "character"
but what I want is
## asd
## "data.frame"
I am assigning the iris data set to the name asd and want its class, but my code is returning "character" instead of "data.frame".
When we have N objects in our environment, we should see how many objects there are and their classes.