frequency_weights | R Documentation |

`frequency_weights()`

creates a vector of frequency weights which allow you
to compactly repeat an observation a set number of times. Frequency weights
are supplied as a non-negative integer vector, where only whole numbers are
allowed.

frequency_weights(x)

`x` |
An integer vector. |

A new frequency weights vector.

`importance_weights()`

# Record that the first observation has 10 replicates, the second has 12 # replicates, and so on frequency_weights(c(10, 12, 2, 1)) # Fractional values are not allowed try(frequency_weights(c(1.5, 2.3, 10)))

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.