Description Usage Arguments Value Examples

Calculate a proportion or a ratio from a vector.

1 2 3 |

`x` |
A vector to calculate a proportion or ratio from. |

`numerator` |
A vector of elements to count in the numerator. |

`denominator` |
For lb_prop this is a vector of elements to count in the denominator in addition to those included in the numerator. For lb_ratio the values given by the numerator argument are not added. |

`round` |
A logical indicating whether to round the output. |

`digits` |
The number of decimal places to round to, passed to the round function. |

`percect` |
A logical indicating whether to present the output as a percentage rather than a proportion.. |

prop returns the proportion of specified values, presented as a percentage or raw proportion.

ratio returns a ratio.

1 2 3 4 5 6 |

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.