freq: Obtain frequencies of an atomic vector as proportions.

Description Usage Arguments Value Examples

View source: R/counts.R

Description

NA as considered valid and their proportions are calculated.

Usage

1
freq(vec)

Arguments

vec

An atomic vector

Value

A vector of frequencies as proportions with same length as the vector.

Examples

1
freq(c(1,2,2,2,1,NA))

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