problem viewing S help files
Robert M Dorazio
bob_dorazio at usgs.gov
Tue Jan 8 14:16:32 CET 2002
When I use ESS to request S help files, the information placed in the
*help(obj-name)* buffer does not appear to be correct. (e.g., below is the
output which appears on typing "C-c C-v sum" within the ESS edit buffer.
How can I obtain correct behavior?
Bob Dorazio
P.S. I'm using Solaris 2.7, ESS version 5.1.19, XEmacs version 21.1
<HTML>
<head>
<style type="text/css">
body { font-size: 14pt ; font-family: SansSerif }
p { font-size: 14pt ; font-family: SansSerif }
samp { font-size: small; font-family: Monospaced }
code { font-family: Monospaced }
tt { font-family: Monospaced }
pre { margin-top: 5; margin-bottom: 5; font-family: Monospaced}
</style>
<script language="Java Script"> {{mangled by MM --> non bouncing e-mail}}
<!--
// searching is disabled until the applet is initialized
enableSearch = false;
function searchInIndex (srch_trm) {
theUrl = document.SgmlLink.search(srch_trm);
if (theUrl.length() == 0) {
alert("DOCUMENT NOT FOUND");
}
else{
coWindow
=open(theUrl,"srch_trm","width=600,height=500,resizable=1,scrolling=1,statusbar=1,location=1,scrollbars=1");
coWindow.location=theUrl;
coWindow.focus();
}
return ;
}
//-->
</script>
</head>
<body bgcolor='#FFFFFF'>
<!sum>
<!prod>
<H1>Sums and Products
</H1>
<H2> DESCRIPTION: </H2>Returns the number that is the sum or product of all
of the elements of
all of the arguments. Missing values may optionally be removed before
the computations.
<H2> USAGE: </H2>
<PRE>sum(..., na.rm=F)
prod(..., na.rm=F)
</PRE>
<H2> REQUIRED ARGUMENTS: </H2>
<DL>
<DT><B>...</B>
</DT><DD>
numeric or complex objects.
Missing values ( <TT>NA</TT>s) are allowed, but will cause the value
returned
to be <TT>NA</TT>, unless <TT>na.rm=TRUE</TT>.
</DD>
</DL>
<H2> OPTIONAL ARGUMENTS: </H2>
<DL>
<DT><B>na.rm=</B>
</DT><DD>
logical flag: should missing values be removed before computation?
This must be specified in the <TT>na.rm=</TT> form.
</DD>
</DL>
<H2> VALUE: </H2>
<DL>the sum or product of all the elements of all the arguments.
If the total length of all the arguments is 0, <TT>sum</TT> returns
<TT>0</TT>
and <TT>prod</TT> returns <TT>1</TT>.
</DL>
<H2>DETAILS:</H2>
<P>
These functions are members of the <TT>Summary</TT> group of generic
functions.
</P>
<H2> WARNING: </H2>
<P>
The <TT>sum</TT> function performs integer arithmetic if all
of the numbers are considered integers.
If overflow occurs, integer arithmetic "wraps around" rather than producing
an error or an <TT>NA</TT>. For example,
<TT>sum(as.integer(c(2147483647,34)))</TT>
returns <TT>-2147483615</TT>.
</P>
<H2> SEE ALSO: </H2>
<OBJECT CLASSID="java:com.insightful.splus.SplusJhHyperlink">
<param name="id" value="cumsum">
<param name="text" value="cumsum">
<param name="textColor" value="blue">
</OBJECT>
,
<OBJECT CLASSID="java:com.insightful.splus.SplusJhHyperlink">
<param name="id" value="Arithmetic">
<param name="text" value="Arithmetic">
<param name="textColor" value="blue">
</OBJECT>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list