Why is my table empty when i print it to an html file?

57 views Asked by At

I have run into some issues with printing tables to html files using R. When I view the file in R, everything looks fine but when I use print(), the file becomes empty:

Table_3 <- cbind(City_buildyear, Town_buildyear)
colnames(Table_3) <- c("Storstadsregion (andel)", "SmÄstadsregion (andel)")
rownames(Table_3) <- c("-1939", "1940-1959", "1960-1979", "1980-1999", "2000-2015")
xtable_3 <- xtable(Table_3, caption = "Samband stadstyp och byggnadsÄr")
print(x = xtable(xtable_4), type = "html", file = "Table3", digits = 3)

An example of how I want the html file to look, and what r previews

I've tried some different code but none seem to do the trick. I can't seem to understand why it doesn't work. All of my other tables have worked out perfectly fine.

0

There are 0 answers