R/fs_modified_sum.R

Defines functions modifiedSum

# Fuzzy supplementary poverty estimation.
#
# @param x a numeric vector
# @param y a numeric vector
#
# @return the sum of x,y
#
modifiedSum <- function(x, y) {

  replace(x, is.na(x), 0) + replace(y, is.na(y), 0)
}

Try the FuzzyPovertyR package in your browser

Any scripts or data that you put into this service are public.

FuzzyPovertyR documentation built on Oct. 3, 2024, 5:06 p.m.