2
我試圖寫R
文件到Stata
與使用paste
功能生成Stata
文件名:寫作R檔到塔塔與粘貼功能
# 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, 「"
我將不勝感激,如果你能提供一些線索來解決這個錯誤。
你的雙引號似乎是不同的ASCII字符產生一個文件名
data.2010.dta
更短。 –
感謝Jilber的解決方案! – Metrics