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