`aggr_share_of`

calculate the share of a group of entries in the
entirety of entries one level above, such as the share of plaice in
landings of a particular fishing fleet per year.

1 | ```
aggr_share_of(data, id.vars, col, case, value)
``` |

`data` |
Dataset to use. |

`id.vars` |
A list of the variables to split data frame by, as as.quoted variables, a formula or character vector (similar ddply in package plyr). |

`col` |
Variable name that defines the case for which share is to be calculated. |

`case` |
Name of the case for which share in the entirety is to be calculated. |

`value` |
What to aggregate, i.e. calculate the share of? |

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.