Catch a typo. add an optional function for making this more completed.
M--
• 103
• 4

For the sake of completeness of the answer, you can ususe ls() to list all the assigned variables and data frames. This is similar to who and whos in Matlab.

If you want to get the list data.frames only you can use something like this:

ls()[grepl('data.frame', sapply(ls(), function(x) class(get(x))))]

You should probably ask questions like this on R forums.

ivan-k
• 233
• 1
• 5

For the sake of completeness of the answer, you can us ls() to list all the assigned variables and data frames. This is similar to who and whos in Matlab.

You should probably ask questions like this on R forums.