r get number of rows in dataframe code example Example: how to find number of rows in datafram R nrow(<dataframe>)