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