fs_order {FuzzyPovertyR}R Documentation

Fuzzy monetary poverty estimation

Description

Detects and inverts deprivation items for FS

Usage

fs_order(data, vec_order)

Arguments

data

a data-set of n columns with the considered items

vec_order

a vector length n with TRUE or FALSE. True if the order of the variable is to be inverted, False otherwise

Value

A data.frame with the same item of data with inverted order for those with vec_order==TRUE

Examples

#Create data
data=data.frame("X"=rep(c(1,2,3,4),20), "Y"=rep(c(7,8,9,1),20))
#Crete vec_order
vec_order=c(TRUE,FALSE)
##
fs_order(data=data, vec_order)



[Package FuzzyPovertyR version 2.0.1 Index]