Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已通过以下方式将 Stata 数据集导入 R:
library(foreign) abcdata <- read.dta("abc.dta")
如何将“abcdata”重新保存到 CSV 文件中?谢谢你。
尝试:
> write.csv(data, file = "fhsdata.csv")
你必须阅读?write.table
?write.table
write.table(data, "abcdata.csv", sep=',')
或直接使用:
write.csv(...)