R: why does stargazer return incorrect values for min and max with this dataframe?
问题 I was using stargazer today to make some basic summary tables, and noticed some strange behavior: library(stargazer) my_df <- data.frame(speed = c(3.00,3.20,3.00,3.20,3.10,2.90), age = c(22,24,24,28,19,25)) stargazer(my_df, type="text", summary.stat = c("min", "mean", "max"), digits = 2) Output is: ======================= Statistic Min Mean Max ----------------------- speed 3 3.07 3 age 19 23.67 28 ----------------------- Clearly min should be 2.90 and max should be 3.20, as I've specified