Description Usage Arguments Value Author(s) Examples

Calculates the number of unique values in a vector.

1 | ```
lengthunique(x)
``` |

`x` |
A vector. |

The number of unique values in a vector.

Charles Crabtree [email protected]

1 2 | ```
x <- rep(c(1:10), 10)
lengthunique(x)
``` |

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.