Is anyone else having this problem?
> d <- data.frame(x=1:5, y=6:10)
> print(d, type="html", file="d:/delete/test5.html")
x y
1 1 6
2 2 7
3 3 8
4 4 9
5 5 10
My R version is version 2.12.2 and xtable version is xtable_1.5-6.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You haven’t created an
xtableobject, only a data frame. Soprintis running the appropriate method for a data frame which doesn’t include the writing to file options. Try:More generally, if you want to write things to a file, you can try
cat.