fm.tableR Documentation

Count the number of elements

Description

fm.table counts the number of occurences of each unique value in a FlashR vector.

Usage

fm.table(x)

## S4 method for signature 'fm.table'
as.vector(x)

## S4 method for signature 'fm.table'
as.data.frame(x, row.names = NULL, optional = FALSE,
  ...)

Arguments

x

a FlashR vector or a "table" object for as.vector and as.data.frame.

Value

a table object.

Examples

vec <- as.integer(fm.runif(1000, min=0, max=10))
tbl <- fm.table(vec)
cnts <- as.vector(tbl)
df <- as.data.frame(tbl)