可能重复:
each value of dataframe convert to string before write function
我有这样的数据
dput(头(结果))
structure(c("-y59OhclSVSb18Z-Zhfd-g", "EtfWVLsBThGuJ9-jDwGF-w",
"OsEpUFRfQ4GPaX8Oh8J6Hw"), .Dim = c(3L, 1L))
write.csv(result, file =filename,row.names=FALSE)
使用这个函数我可以写数据,但是在这种情况下,当我写入csv文件时,某些值具有“ - ”前面的id,它在excel中显示#Name(错误)。
在那种情况下我做了什么? 感谢