functiongenerator.html
来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 73 行
HTML
73 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Function Generator Constructor</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for FunctionGenerator {tm}"><tr><td>FunctionGenerator {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Function Generator Constructor</h2>
<h3>Description</h3>
<p>
Constructs a function generator object.
</p>
<h3>Usage</h3>
<pre>
## S4 method for signature 'function':
FunctionGenerator(object)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
a generator function which takes some input
and constructs and returns a new function based on
that input information.</td></tr>
</table>
<h3>Value</h3>
<p>
An S4 object of class <code>FunctionGenerator</code> which extends the class
<code>function</code> representing a function generator.</p>
<h3>Author(s)</h3>
<p>
Ingo Feinerer
</p>
<h3>See Also</h3>
<p>
Many reader functions are function generators, e.g.,
<code><a href="readPlain.html">readPlain</a></code>.
</p>
<h3>Examples</h3>
<pre>
funGen <- FunctionGenerator(function(y, ...) {
if (is(y, "integer")) function(x) x+1 else function(x) x-1
})
funGen
funGen(3L)
funGen("a")
</pre>
<hr><div align="center">[Package <em>tm</em> version 0.3 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?