title: Print the Nth Row in a List of Data Frames
body: <p>I am cleaning several excel files in R. They unfortunately are of unequal dimensions, rows and columns. Currently I am storing each excel sheet as a data frame in a list. I know how to print the 4th row of the first data frame in a list by issuing this command:</p>
  
  <pre><code>df.list1[[1]][4,]
  </code></pre>
  
  <p>Or a range of rows like this:</p>
  
  <pre><code>df.list1[[1]][1:10,]
  </code></pre>
  
  <p>My question is: How do I print a particular row for every data frame in the list? In other words:</p>
  
  <pre><code>df.list1[[i]][4,]
  </code></pre>
  
  <p><code>df.list1</code> has 30 data frames in it, but my other <code>df.lists</code> have over 140 data frames that I am looking to extract their rows. I'd like to be able to store particular locations across several data frames into a new list. I'm thinking the solution might involve <code>lapply</code>.</p>
  
  <p>Furthermore, is there a way to extract rows in every data frame in a list based on a condition?  For example, for all 30 data frames in the list df.list1, extract the row if the value is equal to "Apartment" or some other string of characters.</p>
  
  <p>Appreciate your help, please let me know if I can help clarify my problem.</p>