> ls(pattern = 'all')
[1] "allid" "allpct" "allpop"
> objs <- ls(pattern = 'all')
> str(objs)
chr [1:3] "allid" "allpct" "allpop"
> class(objs)
[1] "character"
> mode(objs)
[1] "character"
> typeof(objs)
[1] "character"
> help(list)
> is.list(objs)
[1] FALSE
> foo <- list(objs)
> is.list(foo)
[1] TRUE
> str(foo)
List of 1
$ : chr [1:3] "allid" "allpct" "allpop"
# note the $ :