50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

ForImp (version 1.0.3)

ld: Listwise deletion

Description

Listwise deletion

Usage

ld(mat)

Arguments

mat
a matrix or a dataframe

Value

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

Details

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

See Also

meanimp, modeimp, medianimp

Examples

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

Run the code above in your browser using DataLab