R: How to handle a list of dataframes in a loop
<p>I've got a list named <code>rec</code> containing dataframes of participant1 to participant17 and should check the number of columns in every single dataframe. This is how I tried it:</p>

<pre><code>columns = rep(NA, length(1:17))
v1 = seq(1:17)
for (i in v1) {
    columns = length(rec$participant[i])  
}
</code></pre>

<p>Unfortunately R just returns 0 for columns and I would be happy about for any help.</p>