This function returns a vector of the distinct value of a column in a tibble. It also change the NA to a input value specified by users.

get_distinct(d, column, na_fill = "NA")

Arguments

d

A tibble data.

column

A column name. It should be in the columns of d.

na_fill

the value to fill NA value. (default "NA")

Value

A vector of distinct value of the column in the tibble.