Num: Numeric Vectors

View source: R/Num.R

NumR Documentation

Numeric Vectors

Description

Creates objects of type "hd_Num". hd_Num objects contain a "stats" attribute, with the following information: unique values (n_unique), NA values (n_na), percentage weight of NA values (pct_na), lowest value (min) and highest value (max).

Usage

Num(x = double())

Arguments

x

object to be created as Num type

Examples

x <-   c(1, 54, 678, NA, NA)
num <- Num(x)
num
class(num)
attr(num, "stats")


datasketch/homodatum documentation built on May 1, 2023, 12:17 a.m.