Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 8,

Hii All! I has been using the following code:

RSM_Table2<- cbind.data.frame(c(1:ncol(science.response)),
Avg_Rating,
centered.item.locations,
delta.se,
item.fit$outfit_MSE,
item.fit$std_outfit,
item.fit$infit_MSE,
item.fit$std_infit)

But, I get the following error message:
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 8, 0.

Therefore, I hope that All of you will be willing to provide assistance, and advice on this problem.

The vectors from which you are trying to build the data frame have different lengths. You can check their length with code like

length(Avg_Rating)

Al least one of the vectors has a length of zero.

What Can i do for solving it? after i code length(Avg_Rating), out
[1] 8

What are the other lengths? To combine vectors with cbind(), they all have to be the same length.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.