Description Usage Arguments Value Examples

Scale a vector so that it sums to some positive number

1 | ```
sum_to(vec, to = 100L)
``` |

`vec` |
A non-negative integer or numeric vector without NA |

`to` |
A positive number |

A vector that sums to 'to'

1 |

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.

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.