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.
paste <- paste(sep="")
puts the output of paste()
into an object named "paste". You would need to do something like this instead.
paste <- function (..., sep = "", collapse = NULL) {
base::paste(..., sep=sep, collapse=collapse)
}
You can also look at the Defaults package for this sort of thing, but it doesn't currently work for two of your examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With