Learn R Programming

SSBtools (version 1.7.0)

table_all_integers: Table all integers from 1 to n

Description

Table all integers from 1 to n

Usage

table_all_integers(x, n)

Value

A 1D array of class "table" representing the frequency of each integer from 1 to n.

Arguments

x

A vector of integers.

n

The maximum integer value.

Examples

Run this code
table_all_integers(c(2, 3, 5, 3, 5, 3), 7)

Run the code above in your browser using DataLab