Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. dt <- MAC_trans_sales_members
  2. setDT(dt)[, fwrite(.SD, paste0("output_", join.cohort,".csv")),
  3. by = join.cohort, .SDcols=names(dt) ]
  4.  
  5. Error: is.character(file) && length(file) == 1 && !is.na(file) is not TRUE
  6.  
  7. setDT(MAC_trans_sales_members)[, write.csv(.SD, paste0("output_", join.cohort,".csv")),
  8. by = join.cohort, .SDcols=names(MAC_trans_sales_members) ]
  9.  
  10. Error in file(file, ifelse(append, "a", "w")) :
  11. invalid 'description' argument
  12. In addition: Warning message:
  13. In if (file == "") file <- stdout() else if (is.character(file)) { :
  14. the condition has length > 1 and only the first element will be used
  15.  
  16. daply(MAC_trans_sales_members, .(join.cohort), write.csv)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement