database.object(where) database.type(where) database.status(where) database.status(where) <- value database.attr(which, where=1:length(search())) database.attr(which, where) <- value
database.type returns a character string describing the type of database at the where position in the search list: "directory", an ordinary directory containing S-PLUS objects; "object", an S-PLUS object (list); "compiled", a compiled object (see function cdump); "user", a user-defined database (see dbread).
database.status returns a character string giving the status of a database: "read", a read-only database; "readwrite", a database that can be read and modified; "modified", a database that has been modified since it was attached.
database.attr returns the value of the attribute named which corresponding to the first database position in where that has such an attribute (or NULL if the attribute does not exist).
if on the left of an assignment database.attr changes the attribute named what corresponding to the first database position in where to value.
a <- scan("mydata",list(name="",salary=1,age=1,dept="")) attach(a) # now the elements available by name name[salary>100000]