I'm wondering if it's possible to create a xtable
from the command str(x)
to get an overview from the variables you use. This would be a nice feature to introduce someone to the dataset, but it's annoying to create it by yourself. So whta I tried is to make a xtable
like this:
str(cars)
require(xtable)
xtable(str(cars))
the cars dataset is given from R. Unfortunately xtable
doesn't give a Latexcode for str()
. Is it possible outsmart R here? Here are the main commands that xtable
will understand:
methods(xtable)
Any ideas?