Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他にこの問題を抱えている人はいますか?
> 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
私のRバージョンはバージョン2.12.2で、xtableバージョンはxtable_1.5-6です。
xtableオブジェクトを作成しておらず、データフレームのみを作成しています。したがってprint、ファイルへの書き込みオプションを含まないデータフレームに対して適切なメソッドを実行しています。試す:
xtable
print
d <- data.frame(x=1:5, y=6:10) x <- xtable(d) print(x, type="html", file="d:/delete/test5.html")
より一般的には、ファイルに書き込みたい場合は、を試すことができますcat。
cat