Description Usage Arguments Details Value Author(s) See Also Examples

Calculates relative frequencies of the rows of a data frame.

1 | ```
empirical(x)
``` |

`x` |
a data frame. |

The function works by adding a `probs`

column to `x`

with equally likely entries of *1/n*, where *n* is the number of rows. Then it aggregates the duplicated rows of `x`

while accumulating the probabilities associated with each.

A data frame formed by aggregating the rows of `x`

. A `probs`

column is added giving the relative frequencies of each of the rows.

G. Jay Kerns gkerns@ysu.edu.

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.