When using downloaded R packages, such as “tm”, the given example usually loads an example data set such as
data("crude")
How can I know what exactly this data set is, and in which kind of format, a matrix or a vector? Only by knowing this kind of information can I customize my input into the format required by this package.
Aside from using the help facilities to get more info on
crudewe can do this:In the above case the
crudedataset contained just one object which was also calledcrudebut that is not always the case. For example, thestatedataset contains 7 objects and none of them are calledstate: