Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r return index of rows that have NA in dataframe

# Basic syntax:
which(is.na(your_dataframe), arr.ind=TRUE)
# Where:
#	- which returns the dataframe row indices for rows that contain
#		a logical of TRUE
#	- is.na processes the dataframe and converts all values to TRUE or 
#		FALSE based on whether they are NA or not
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #index #rows #NA #dataframe
ADD COMMENT
Topic
Name
3+8 =