Learn R Programming

BIFIEsurvey (version 1.5-0)

bifietable: An Rcpp Based Version of the table Function

Description

This is an Rcpp based version of the base::table function.

Usage

bifietable(vec, sort.names=FALSE)

Arguments

vec
A numeric or character vector
sort.names
An optional logical indicating whether values in the character vector should also be sorted in the table output

Value

See Also

base::table

Examples

Run this code
data(data.timss1)
table( data.timss1[[1]][,"books"] )
bifietable( data.timss1[[1]][,"books"] )

Run the code above in your browser using DataLab