r - write.csv writes an empty file -
i created data.frame cust_data_360 2 data sets cust_data , cust_demo using following sql query : used sqldf package
cust_data_360 <- sqldf('select * cust_data id not in(select id cust_demo)')
when try write output using write.csv :
write.csv('cust_data_360', file = 'cust_data_360.csv')
the file written @ working directory blank. not sure problem? cust_data_360 has 44 observations 10 variables.
to clarify @akrun - don't quote name of object writing. use write.csv(cust_data_360, file="cust_data_360.csv")
the csv created shouldn't empty:
> write.csv('cust_data_360', file = 'cust_data_360.csv') >
now view (linux command line, in windows, open in notepad)
$ cat cust_data_360.csv "","x" "1","cust_data_360"
it contains 2 lines me.
Comments
Post a Comment