Error in overallind[, (ncol(overallind) + 1)] <- colnames(Male10)[i] : incorrect number of subscripts on matrix

Hi! Welcome!

Here's a nice guide on this error message and common reasons for receiving it.

This error results from using a matrix notation on a data structure that is not a matrix. It is a surprisingly simple mistake to make, making and hard to find if you do not know what you’re looking for.

On Screenshots - Can you please add a description of your problem to your post, including what you were doing when the problem occurred and what troubleshooting steps you've already tried? Screenshots can be helpful in some cases, but they are difficult to read so this community prefers to avoid using a screenshot as the entire contents of a post.