SCM

SCM Repository

[inlinedocs] View of /pkg/inlinedocs/inst/testfiles/apply.R
ViewVC logotype

View of /pkg/inlinedocs/inst/testfiles/apply.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 347 - (download) (annotate)
Fri Apr 6 08:41:22 2012 UTC (6 years, 2 months ago) by tdhock
File size: 1665 byte(s)
apply testfile for \code{+} +jss article
apply <- function # Apply Functions Over Array Margins
### Returns a vector or array or list of values obtained by applying a
### function to margins of an array or matrix.
(X, ##<< an array, including a matrix.
 MARGIN,
### the margin.
 FUN, 
### the function to be applied: see \sQuote{Details}. In the case of
### functions like \code{+}, \code{%*%}, etc., the function name
### must be backquoted or quoted.
 ... ##<< optional arguments to \code{FUN}.
 ){
  5
### test apply.
}

.result <-
  list(apply=list(title="Apply Functions Over Array Margins",
         description=paste("Returns a vector or array or list of values obtained by applying a",
           "function to margins of an array or matrix.",sep="\n"),
         "item{X}"="an array, including a matrix.",
         "item{MARGIN}"="the margin.",
         "item{FUN}"=paste("the function to be applied: see \\sQuote{Details}. In the case of",
           "functions like \\code{+}, \\code{%*%}, etc., the function name",
           "must be backquoted or quoted.",sep="\n"),
         "item{\\dots}"="optional arguments to \\code{FUN}.",
         value="test apply.",format="",
         definition="apply <- function # Apply Functions Over Array Margins\n### Returns a vector or array or list of values obtained by applying a\n### function to margins of an array or matrix.\n(X, ##<< an array, including a matrix.\n MARGIN,\n### the margin.\n FUN, \n### the function to be applied: see \\sQuote{Details}. In the case of\n### functions like \\code{+}, \\code{%*%}, etc., the function name\n### must be backquoted or quoted.\n ... ##<< optional arguments to \\code{FUN}.\n ){\n  5\n### test apply.\n}"))


R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge