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 Jan. 22, 2019, 11:23 p.m.