klaster at karlin.mff.cuni.cz
Sat Apr 28 20:11:14 CEST 2007
Natalie O'Toole napsal(a):
> Does anyone know why it is giving me this error? Any help would be greatly
> mysubset$Y_Q02 <-mysubset$DVSELF <-NULL
> mysubset2$Y_Q10B <-mysubset2$GP2_07 <-NULL
>> df<-mysubset2[, 2:5] * mysubset2[, 6]
HERE it has to stop with the error message you provided, not below. The
code might run for a few more lines, but the problem is here. Your
mysubset2, btw. we have no idea what that might be, aparently does not
have 2 dimensions.
Besides, your code is very dirty and it is indeed very easy to make a
mistake in such code.
You really should start reading some introductory manual as someone
suggested before. You are not likely to recieve more (different) answers
to questions of this kind.
> happyguys<-subset(df, PROV==48 & GRADE == 7 & Y_Q10A < 9)
> where it is bolded, i'm getting the following error: Error in mysubset2[,
> 2:5] : incorrect number of dimensions
Dept. of Probability and Statistics
Charles University in Prague
More information about the R-help