how to create a csv in a R server? -


i running r code in server. data frame:

npifinal <- data.frame(     npi = npi$npi,     id = npi$id,     first_name = npi$first,     last_name = npi$last,     email_id = npi$email,     primary_speciality = npi$psnew,     other_speciality = npi$othersplname ) 

and tried write csv using:

write.csv(npifinal,"npi data.csv") 

but getting error:

error in file(file, ifelse(append, "a", "w")) :    cannot open connection.. 

can me code?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -