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
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
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
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.