Description Usage Arguments Details Value Examples

View source: R/epi_functions.R

`expand_df`

expands a data frame by a vector of frequencies.

1 |

`aggregate.data` |
A data frame. |

`index.var` |
A numerical variable with the frequencies (counts). |

`retain.freq` |
Logical expression indicating if frequencies should be kept. |

This is a generic function that resembles weighted frequencies in other statistical packages
(for example, Stata). `expand.df`

was adapted from a function developed by deprecated package
`epicalc`

(now package `epiDisplay`

).

An expanded data frame with replicates given by the frequencies.

1 2 3 4 5 6 7 |

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.