File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Spreadsheet_Functions.tex
Revision
1.8:
download - view:
text,
annotated -
select for diffs
Tue Jan 23 01:48:37 2007 UTC (17 years, 7 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_99_0,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox
- add a &PARM() routine to SPRS
- document &PARM(), &MAXPARM(), &MINPARM()
1: \label{Spreadsheet_Functions}
2: The following special functions are available in the spreadsheet.
3: Please see \textbf{Referencing Cells} (\ref{Spreadsheet_Referencing_Cells})
4: for information on specifying cells and ranges.
5:
6: \begin{itemize}
7:
8: \item \texttt{\&NUM(range)} - number of non-empty cells in range
9: \index{NUM}
10:
11: \item \texttt{\&BIN(low, high, range)} - number of non-empty cells in
12: range with values between low and high
13: \index{BIN}
14:
15: \item \texttt{\&SUM(range)} - sum of the non-empty cells in range
16: \index{SUM}
17:
18: \item \texttt{\&MEAN(range)} - mean value of non-empty cells in range
19: \index{MEAN}
20:
21: \item \texttt{\&STDDEV(range)} - standard deviation of non-empty cells
22: in range
23: \index{STDDEV}
24:
25: \item \texttt{\&PROD(range)} - product of non-empty cells in range
26: \index{PROD}
27:
28: \item \texttt{\&MAX(range)} - maximum value of non-empty cell in range
29: \index{MAX}
30:
31: \item \texttt{\&MIN(range)} - minimum value of non-empty cells in
32: range
33: \index{MIN}
34:
35: \item \texttt{\&SUMMAX(n ,range)} - sum of the maximum n non-empty
36: cells in range
37: \index{SUMMAX}
38:
39: \item \texttt{\&SUMMIN(n, range)} - sum of the minimum n non-empty
40: cells in range
41: \index{SUMMIN}
42:
43: \item \texttt{\&EXT(expression)} - access to EXT function in lonnet.
44: Use \&EXT(``system.time'') to retrieve the current time.
45: \index{EXT}
46:
47: \item \texttt{\&PARM(parameter)} - get the value of a specific parameter
48: \index{PARM}
49:
50: \item \texttt{\&MINPARM(expression)} - get the value of a parameter that
51: matches the expression that is the smallest in value (If one specified
52: 'opendate' it would return the smallest opendate set on the problem.)
53: \index{MINPARM}
54:
55: \item \texttt{\&MAXPARM(expression)} - get the value of a parameter that
56: matches the expression that is the largest in value (If one specified
57: 'opendata' it would return the largest opendate set on the problem.)
58: \index{MAXPARM}
59:
60: \item \texttt{\&SUMSEQ(column,sequence1,sequence2,sequence3,...)} -
61: sum the given column across the folders or sequences listed.
62:
63: When specifying a sequence use the full title. Instead of a sequence title
64: the word ``all'' can be used to sum over all sequences. Regular expressions
65: can be entered as well, if prefixed by ``regexp:''. See below for examples.
66:
67: \begin{itemize}
68:
69: \item \texttt{\&SUMSEQ(``Z'',''Chapter 1'');}
70:
71: \item \texttt{\&SUMSEQ(``Z'',''Chapter 1'',''Chapter 2'',''Chapter 3'');}
72:
73: \item \texttt{\&SUMSEQ(``Z'',''all'');} - sum over all sequences.
74:
75: \item \texttt{\&SUMSEQ(``Z'',''regexp:Large Biomolecules'');} -
76: sum over all sequences which match the regular expression
77: /Large Biomolecules/.
78:
79: \end{itemize}
80:
81: \end{itemize}
82:
83: In addition, most non-IO Perl functions work in cells.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>