[Rd] colSums etc. documentation (PR#2545)

2003-02-13 Thread bert_gunter
For your consideration: > z [,1] [,2] [1,]1 NA [2,]2 NA [3,]3 NA > colSums(z) [1] 6 NA Correct, according to the documentation > colSums(z,na.rm=T) [1] 6 0 Surprising to me, but, as documented, correctly consistent with apply() and >sum(NULL) [1] 0 The documentation

[Rd] file.choose (PR#2465)

2003-01-16 Thread bert_gunter
R1.6.2 winnt. file.choose() gives an error if the dialog is cancelled without choosing a file. This can be easily dealt with via try(), but I would have thought that a NULL or NA return would be the expected behavior. Cheers, Bert Gunter Biometrics Research RY 84-16 Merck & Company P.O. Box 2000

[Rd] Rprofile.site assignments occur in base package (PR#2448)

2003-01-13 Thread bert_gunter
Not sure whether this is a feature or bug -- but it does not appear to be documented. R1.6.1 on Windows NT 4.00.1381 Objects assigned in the Rprofile.site file (e.g. foo<-'something') are put into package:base not .GlobalEnv on startup. Objects assigned in the .Rprofile file are put into .GlobalE

[Rd] save bug (PR#2418)

2003-01-03 Thread bert_gunter
My apologies if these are known -- I'm new to R (moved over from S-Plus). All on Windows NT GUI, R1.6.1 and associated packages. 1. save(x) gives the following error message: Error in save(x) : `file' must be non-empty string According to the save() help file, the empty string is the default.