数据:https://www.kaggle.com/jessemostipak/hotel-booking-demand?select=hotel_bookings.csv.
预订& lt; - read_csv("…/hotel_bookings.csv"
总结(预订)
stargazer(预订,type = "html", header =F;digits = 2, out = "Output/Plots/Booking_output.html")
但是输出如下:
输入图片描述
Try
stargazer(as.data.frame(booking), type = "html", header =F, digits = 2, out = "Output/Plots/Booking_output.html")
它需要一个数据帧,而不是由read_csv
生成的标题。