Skip to contents

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

Same output like base::table

See also

Examples

data(data.timss1)
table( data.timss1[[1]][,"books"] )
#> 
#>    1    2    3    4    5 
#>  487 1209 1655  706  611 
BIFIEsurvey::bifietable( data.timss1[[1]][,"books"] )
#>    1    2    3    4    5 
#>  487 1209 1655  706  611