search for: newavgflow

Displaying 1 result from an estimated 1 matches for "newavgflow".

2012 Apr 22
10
Assignment problems
...data1[EMU==TRUE,13] a<-table(EMU) 3.1.2. Are the member and non-member country-pairs alike? What I need here is: I want to find the mean of avgflow, but only for the data where 2 countries are in the euro vector/if EMU=TRUE ? I have tried with: >avgflowONLY<-cbind(avgflow,EMU) > NEWavgflow<-rep(0,nrow(avgflowONLY)) > for (i in 1:nrow(avgflowONLY)){if > (EMU==1){NEWavgflow[i]<-mean(avgflow[i])}} BUT it gives me: Warning messages: 1: In if (EMU == 1) { ... : the condition has length > 1 and only the first element will be used etc. ??? -- View this message in conte...