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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -