regarding data( ) function in R

r tm
user288609 picture user288609 · Apr 3, 2012 · Viewed 13.9k times · Source

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.

Answer

Eric Fail picture Eric Fail · Apr 3, 2012

try ?crude, str(crude) and summary(crude).

?crude will even get you some literature references.