Description Usage Arguments Details Value Author(s) References See Also Examples
Substracts the $i$th cases of x
along each level of factor y
. The function is useful for vectorized data, vhen items are repeated in known sequences.
1 |
x |
a vector to be substracted. |
y |
a vector which is used to determine repeating sequences of the valoes of |
i |
numeric, determines position of values taken from |
na.rm |
logical, shoulr NAs removed from the result? The removel of NAs takes place befor subtsracting. |
x
and y
should be of the same lengths.
A vector with length same as number of levels, or unique values in y
. If na.rm = TRUE
, it can be shorter, because the removal of NA values takes place prior to substracting. Names of the result is same as levels of y
.
P\'eter S\'olymos, solymos@ualberta.ca
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.