Do you always use row.names=F in write.csv? Changing the default values inside R (base) functions

Viewed 1647

Couldn't see a solution online but I thought this might be quite common.

  • with write.csv I basically always have the argument row.name set to F. Is it possible to run a line once and update the default value of the argument for the rest of the session?
  • I tried paste <- paste(sep="") which ran and returned no error but seemed to do nothing (and didn't destroy the paste function). This is another one, I always set sep="" with paste...
  • like I always have exclude=NULL when I am using table so I can see the N/A values.

EDIT: So, I'm looking for a solution that will work for multiple functions if possible: paste, write.csv, table and other functions like these.

2 Answers
Related