How to get the nth row from data frame in R
You can also use "slice" function in the following way:
library(dplyr)
slice(dataFrame, 10)
See details here slice: Select rows by position
You just need to use the square brackets to index your dataframe. A dataframe has two dimensions (rows and columns), so the square brackets will need to contain two pieces of information: row 10, and all columns. You indicate all columns by not putting anything. So your code would be this:
dataFrame[10,]