Learn R Programming

replyr (version 0.9.2)

replyr_uniqueValues: Compute number of unique values for each level in a column.

Description

Compute number of unique values for each level in a column.

Usage

replyr_uniqueValues(x, cname)

Arguments

x

tbl or item that can be coerced into such.

cname

name of columns to examine, must not be equal to 'replyr_private_value_n'.

Value

unique values for the column.

Examples

Run this code
# NOT RUN {
d <- data.frame(x=c(1,2,3,3))
replyr_uniqueValues(d,'x')

# }

Run the code above in your browser using DataLab