binfactor: binfactor

Description Usage Arguments Value Examples

View source: R/data_functions.R

Description

binfactor

Usage

1

Arguments

vector

of data to be binned

Value

vector of binned data

Examples

1
2
3
water_type <- floor(runif(100,1,10))
water_type <- dhsdata:::binfactor(water_type, 1:5, 6:8, 9:10)
# the first vetor corresponds to bin = 0, the second vector corresponds to bin = 1 and so on...

GregGu/dhsdata documentation built on June 24, 2020, 12:23 a.m.