Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

count number of rows in r

#count total rows in data frame
nrow(df)

#count total rows with no NA values in any column of data frame
nrow(na.omit(df))

#count total rows with no NA values in specific column of data frame 
nrow(df[!is.na(df$column_name),])
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #count #number #rows
ADD COMMENT
Topic
Name
7+1 =