[R] options --- na.rm , save-on-exit

ivo_welch-rstat8783@mailblocks.com ivo_welch-rstat8783 at mailblocks.com
Sat Jul 3 17:45:45 CEST 2004


dear R wizzards:  two options() related questions.

[a] options(na.action):  many of my variables have missing variables, 
so I would like to set a default to ignore, especially in univariate 
functions like mean() and median() .  alas, without na.rm=T in the 
functions themselves, I always get an NA.  my code is full of na.rm=T 
is there a magic invokation of options with na.action that is honored 
by these functions?

[b] options(?): how do I get R to not prompt me for saving the 
workspace upon exit, but to instead automatically save the command 
history .Rhistory but not the data .RData ?

help appreciated.

sincerely,

/iaw
---
ivo welch
professor of finance and economics
brown / nber / yale




More information about the R-help mailing list