
A summaryFunction
type function, intended to be called from
summarize
to be called from summarize
, which counts the
number of unique (excluding NA
s) values in a variable.
uniqueValues(v, ...)
A variable (vector).
Not in use.
An object of class summaryResult
with the following entries:
$feature
("No. unique values") and $result
(the number of unique
values in v
).
summaryFunction
, summarize
, summaryResult
,
allSummaryFunctions
# NOT RUN {
uniqueValues(c(1:3, rep(NA, 10), Inf, NaN))
# }
Run the code above in your browser using DataLab