The data function is used both to load data sets from packages,
and give a display of the names and titles of data sets in one or more packages,
however it does not return a result that can be easily used to get additional
information about the nature of data sets in packages.
The datasets() function is designed to produce a more useful summary
display of data sets in one or more packages. It extracts the class
and dimension information (dim or codelength) of each item,
and formats these to provide additional descriptors.
datasets("vcdExtra")
# datasets(c("vcd", "vcdExtra"))datasets("datasets", maxTitle=50)
# just list dataset names in a packagedatasets("vcdExtra")[,"Item"]
datasets("vcd")[,"Item"]