title: for loop to print dimensions of files in a list
body: <pre><code>temp &lt;- list.files(pattern = '*.xlsx')
  list &lt;- lapply(temp,read_excel)
  </code></pre>
  
  <p>The above list has 12 files. I want to check the dimensions of each of those 12 files, i.e. number of rows and columns in each file.</p>
  
  <pre><code>for(i in length(list)){
    print(dim(list[[i]]))
  }
  
  [1] 12533    49
  </code></pre>
  
  <p>The above for loop only gives me output of the last file, whereas I need the for loop to give me dimension of each 12 files.</p>
  
  <p>Could someone please let me know what needs to be done.</p>