'Error: Must subset columns with a valid subscript vector

I'm trying to find the reliability of some items, using itemAnalysis(). My data sample consists of 24 items on a Likert scale, with 50 samples.

I keep getting the same Error, see picture:

Error

This is the simple code that is supposed to work:

itemAnalysis(Mindset[,1:24])

What can I try to solve this problem?

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source