请帮助解决我执行以下命令时遇到的错误:
stargazer(as.data.frame(st_sect.hh.earnings[st_sect.hh.earnings$sector.f=="Rural",c(1,3,4)]),
type="html",
title="Mean and Standard Deviation of Monthly Household Income by State for Rural India (Unweighted)",
summary=F, covariate.labels=c("S.No.", "State", "Mean", "Std.Dev."),
digits=0,
notes=c("Source: Periodic Labour Force Survey, 2017-18"),
out=c("tb2.state-rural.hh.earnings.html"))
我有类似的问题。对我来说,它有助于定义观星器功能之外的数据框。
所以它会是
df <- as.data.frame(st_sect.hh.earnings[st_sect.hh.earnings$sector.f=="Rural",c(1,3,4)])
stargazer(df,
type="html",
title="Mean and Standard Deviation of Monthly Household Income by State for Rural India (Unweighted)",
summary=F, covariate.labels=c("S.No.", "State", "Mean", "Std.Dev."),
digits=0,
notes=c("Source: Periodic Labour Force Survey, 2017-18"),
out=c("tb2.state-rural.hh.earnings.html"))
但是,我不确定它是否也有助于解决您的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)