Description Usage Arguments Value Note Author(s) See Also Examples
A wrapper of the aggregate
function. Data are provided as a formula
and the original names are kept in the returned data.frame
.
1 |
formula |
a |
data |
the |
FUN |
a function to compute the summary statistics which can be applied to all data subsets. |
subset |
an optional vector specifying a subset of observations to be used. |
na.action |
a function which indicates what should happen when the data contain |
... |
further arguments passed to or used by methods. |
For the data frame method, teh function returns a data frame with columns corresponding to the grouping variables in the right part of the formula, followed by aggregated columns from the left part of the formula. The names of the variables remain the same as in the original data frame.
named.agg is a wrapper of aggregate
Ananda Mahto
1 2 3 4 5 6 7 8 9 10 | data(erplistExample)
## Not run:
datall=erp.mean(base = "Exp1_word_subj", numbers = 1:20,
win.ini = 400, win.end = 600, erplist=erplistExample, startmsec= -200,
endmsec = 1500, format="long", name.dep="Ampl")
datagg=named.agg(Ampl~electrode+Subject, datall, FUN=mean)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.