I've got a list named rec
containing dataframes of participant1 to participant17 and should check the number of columns in every single dataframe. This is how I tried it:
columns = rep(NA, length(1:17))
v1 = seq(1:17)
for (i in v1) {
columns = length(rec$participant[i])
}
Unfortunately R just returns 0 for columns and I would be happy about for any help.