Answers for "count number of rows"

1

count number of rows

#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),])
Posted by: Guest on April-05-2022
1

Excel sheet count rows

=COUNTIF(RANGE, CONDITION)
Example: =COUNTIF(C1:C30, "Paris")
Posted by: Guest on August-07-2020

Code answers related to "count number of rows"

Browse Popular Code Answers by Language