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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -