Outputting a Dataframe in R to a .csv

后端 未结 3 611
滥情空心
滥情空心 2021-02-07 03:16

So I\'m trying to write a .csv file based on a data frame in R, but for some reason I keep getting the following error:

Error in .External2(C_writetable, x, file         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 03:48

    I just had the same issue and instead of using as.character() or as.numeric(), I used as.matrix(), and it kept my character variables character, and my numeric variables numeric, and output the .csv file like a dream.

提交回复
热议问题