R: Freq

freq {sdcMicro} | R Documentation

## Freq

### Description

Extract sample frequency counts (fk) or estimated population frequency counts (Fk)

### Usage

    freq(obj, type = "fk")

### Arguments

`obj` | an `sdcMicroObj-class`-object
`type` | either `'fk'` or `'FK'`

### Value

a vector containing sample frequencies or weighted frequencies

### Author(s)

Bernhard Meindl

### Examples

    data(testdata)
    sdc <- createSdcObj(testdata,
      keyVars=c('urbrur','roof','walls','relat','sex'),
      pramVars=c('water','electcon'),
      numVars=c('expend','income','savings'), w='sampling_weight')
    head(freq(sdc, type="fk"))
    head(freq(sdc, type="Fk"))

[Package sdcMicro version 5.6.1 Index]