ld: Listwise deletion

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

Description

Listwise deletion

Usage

1
ld(mat)

Arguments

mat

a matrix or a dataframe

Details

This function implements the listwise deletion on a given dataset, removing all the rows or units containing at least one missing value

Value

The matrix/dataframe in input with the rows/units with missing values removed

Author(s)

Alessandro Barbiero, Giancarlo Manzi, Pier Alda Ferrari

See Also

meanimp, modeimp, medianimp

Examples

1
2
3
4
5
6
7
n<-10
m<-4
mat<-matrix(rnorm(n*m),n,m)
mat[c(3,6),1]<-NA
mat[10,2]<-NA
mat
ld(mat)


Search within the ForImp 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.