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