ls(pattern="", pos=1)
Function objects is the recommended function to use to determine the names of objects on a database on the search list. It works for all the various types of databases that may be present and performs name translations that get around limitations of the file system.
Use search() to see the current search list.
ls() #list all working object names ls("lottery*",pos=5) amp;# system database names beginning in "lottery" ls("???") # 3-character object names ls("[A-Z]*") # starts with upper case letter ls(".*") # starts with "." ls(pos=0) # look at session objects