r语言 - 我的占星表的输出为空.为什么

  • 本文关键字:输出 r语言 r stargazer
  • 更新时间 :
  • 英文 :


数据: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生成的标题。

最新更新