This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我正在尝试将R文件写入Stata使用该函数Stata生成的文件名:paste
# x is any data frame
library(foreign)
year<-2010
z<-paste("data", year, sep=".")
write.dta(x, “z.dta")
R gives me the error:
Error: unexpected input in "write.dta(x, “"