Displaying 1 result from an estimated 1 matches for "var_31".
Did you mean:
var_38
2009 Jun 23
1
Error in .subset(x, j) : only 0's may be mixed with negative subscripts
I have a data set called datastep4 with 211484 rows and 95 columns
> dim(datastep4)
[1] 211484 95
The first few column names are given below, note the first one is
"RESPONDED"
> names(datastep4)[1:5]
[1] "RESPONDED" "VAR_30" "VAR_31" "VAR_32" "VAR_33"
A table of RESPONDED shows mostly zeros
> table(datastep4$RESPONDED)
0 1
210582 902
I reduce the data set by pulling out the RESPONDED column, then verify
all is well
> test <- datastep4[,-datastep4$RESP...