How to save a data frame as CSV to a user selected location using tcltk

前端 未结 3 1935
一向
一向 2021-01-31 01:52

I have a data frame called, Fail.

I would like to save Fail as a CSV in a location that the user selects. Below is some example code that I

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-31 02:30

    You need not to use even the package "tcltk". You can simply do as shown below:

    write.csv(x, file = "c:\\myname\\yourfile.csv", row.names = FALSE)
    

    Give your path inspite of "c:\myname\yourfile.csv".

提交回复
热议问题