Error message: 'names' attribute must be the same length as the vector

I believe you managed to install the package and this is another issue ?
It should be in another thread if so.

The error tells you that wc$membership as one more element than colnames(data). Without your data and a reprex it is difficult to help you more.

3 Likes