I have the following data.table (data.frame) called output:
> head(output)
Id Title IsProhibited
1 10000
Assuming
the path you want to save to is Path, i.e. path=Path
df is the dataframe you want to save,
follow those steps:
Save df as txt document:
write.table(df,"Path/df.txt",sep="|")
Read the text file into R:
Data = read.table("Path/df.txt",sep="|")
Now save as csv:
write.csv(Data, "Path/df.csv")
That's it.