Error in apply(items, c(1, 2), is.numeric) : dim(X) must have positive length

Hi there,

It is just not possible to help without a reprex. We need to see data and things so we can see exactly what is happening. See here on a reprex: FAQ: How to do a minimal reproducible example ( reprex ) for beginners