【发布时间】:2021-02-09 09:21:06
【问题描述】:
是否可以直接通过管道进入 stargazer,而不是使用下面更复杂的方式?
例子:
date %>%
filter(x1== "yes",
x2 == "no") %>%
select(x5,
x6) -> df
cols <- c("x5", "x6")
stargazer(
df[, cols], type = "text",
summary.stat = c("min", "p25", "mean", "p75", "max", "median", "sd", "n")
)
【问题讨论】:
-
df[, cols] %>% stargazer(type = "text", ...)