Description Usage Arguments Value See Also Examples
Summarizes the columns or rows of a rectangular object.
1 2 3 4 5 6 7 8 9 10 11 | colIds(x, do.NULL=TRUE, prefix="col")
colMaxs(x, na.rm = FALSE, dims = 1, n = NULL)
colMedians(x, na.rm=FALSE)
colMins(x, na.rm = FALSE, dims = 1, n = NULL)
colRanges(x, na.rm = FALSE, dims = 1, n = NULL)
colVars(x, na.rm=FALSE, dims = 1, unbiased = TRUE,
SumSquares = FALSE, weights = NULL, freq = NULL, n = NULL)
rowIds(x, do.NULL=TRUE, prefix="row")
rowMaxs(x, na.rm = FALSE, dims = 1, n = NULL)
rowMins(x, na.rm = FALSE, dims = 1, n = NULL)
rowRanges(x, na.rm = FALSE, dims = 1, n = NULL)
|
x |
rectangular input object such as a matrix or data.frame. |
dims |
if |
do.NULL |
logical for rowIds or colIds. |
n |
number of rows; treat |
na.rm |
logical, NA values are removed if TRUE. |
prefix |
character string preface for column IDs returned by rowIds or colIds. |
unbiased |
logical, unbiased variance estimates returned if |
SumSquares |
logical, sums of squares are returned if |
weights, freq |
unsupported, here for backwards compatibility. |
corresponding summary by row or by column.
See 'aggregate' package for alternative definitions of colStdevs, colVars, rowStdevs and rowVars functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[1] "col 1" "col 2" "col 3" "col 4" "col 5"
col 1 col 2 col 3 col 4 col 5
0.9092974 0.9893582 0.4121185 0.9906074 0.9129453
col 1 col 2 col 3 col 4 col 5
0.4912955 0.1887856 -0.5402970 0.5352274 -0.3005550
col 1 col 2 col 3 col 4 col 5
-0.7568025 -0.9589243 -0.9999902 -0.2879033 -0.9613975
col 1 col 2 col 3 col 4 col 5
[1,] -0.7568025 -0.9589243 -0.9999902 -0.2879033 -0.9613975
[2,] 0.9092974 0.9893582 0.4121185 0.9906074 0.9129453
[1] "a" "b" "c" "d"
a b c d
0.8414710 0.9906074 0.6569866 0.9893582
a b c d
-0.9613975 -0.7509872 -0.9999902 -0.7568025
a b c d
[1,] -0.9613975 -0.7509872 -0.9999902 -0.7568025
[2,] 0.8414710 0.9906074 0.6569866 0.9893582
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.