ld: Listwise deletion

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

View source: R/ld.R

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)

ForImp documentation built on May 29, 2017, 9:48 p.m.

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