Couldn't see a solution online but I thought this might be quite common.
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?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
...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.
Try this:
paste <- paste
formals(paste)$sep <- ""
This creates a new copy of paste
in your workspace, and then modifies its default value for sep
to ""
. Subsequent calls to paste
will then use the modified copy, as it sits in front of the base environment in your search path.