counts: Obtain counts of an atomic vector as a named integer vector.

Description Usage Arguments Value Examples

View source: R/counts.R

Description

NA as considered valid and their counts are calculated.

Usage

1
counts(vec)

Arguments

vec

An atomic vector

Value

A named integer vector

Examples

1
counts(c(1,2,2,2,1,NA))

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.