I have the following line of code which uses summarytools package to generate and view a description table using stby and desc functions
view(stby(meta.data$Age, meta.data$Diagnosis, descr,
transpose = T, stats = c("mean", "sd")))
The above line generates the following.
How can I export it to a png file instead of an HTML file?
summarytools::view()produces aHTMLfile to be shown in the RStudio Viewer. You can print that file as e.g. PDF or PNG.pagedown::chrome_print()can do that in an automated fashion.