imputemiss: Impute missing values in a variable

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Takes in a vector and a value, and returns the vector with missing values imputed with that value

Usage

1

Arguments

vector

a vector with missing values

value

the value to be used for imputation

Details

imputemiss imputes the missing (NA) values in the vector with a specified value. The function simplifies the code for imputation.

Value

vector of the same class as input vector with imputed missing values

Author(s)

Akash Jain

See Also

decile, pentile, outliers

Examples

1
2
3
4
5
# Scores vector
scores <- c(1, 2, 3, NA, 4, NA)

# Imputd scores vector
scoresImp <- imputemiss(vector = scores, value = 5)


Search within the StatMeasures package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.