Check whether data frame has na or not in R

Below is the line of code ...

which(is.na(dat), arr.ind=TRUE)

returns row and column with NA , below is the output


No comments:

Post a Comment

7 Stages of Machine Learning - Framework Introduction

Framework Introduction 7 Stages Introduction Stage 1: Problem Definition Stage 2: Data Collection Stage 3: Data Preparation Stage 4: Data Vi...