[R-gregmisc-users] SF.net SVN: r-gregmisc:[1799] trunk/gdata/R/nobs.R
Brought to you by:
warnes
From: <wa...@us...> - 2014-04-05 18:38:26
|
Revision: 1799 http://sourceforge.net/p/r-gregmisc/code/1799 Author: warnes Date: 2014-04-05 18:38:23 +0000 (Sat, 05 Apr 2014) Log Message: ----------- Call stats::nobs instead of stats:::nobs.default within gdata::nobs.default. This avoids R CMD check warning. Modified Paths: -------------- trunk/gdata/R/nobs.R Modified: trunk/gdata/R/nobs.R =================================================================== --- trunk/gdata/R/nobs.R 2014-04-05 18:22:16 UTC (rev 1798) +++ trunk/gdata/R/nobs.R 2014-04-05 18:38:23 UTC (rev 1799) @@ -11,10 +11,10 @@ if(is.numeric(object) || is.logical(object)) sum( !is.na(object) ) else - stats:::nobs.default(object, ...) + stats::nobs(object, ...) } - + nobs.data.frame <- function(object, ...) sapply(object, nobs.default) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |