Displaying 1 result from an estimated 1 matches for "capdist".
Did you mean:
caldist
2009 Sep 06
2
selecting columns based on values of two variables
...he data-set looks like this:
numa ida numb idb kmdist midist
1 2 USA 20 CAN 731 456
2 2 USA 31 BHM 1623 1012
3 2 USA 40 CUB 1813 1130
I want to select a subset of these dyads, and have tried the following
code:
subset(capdist,ida == c("DEN","SWD","FIN") & idb ==
c("DEN","SWD","FIN"))
This should ideally give me the dyads involving only Denmark, Sweden
and Finland, however i get the error message:
[1] numa ida numb idb kmdist midist
<0 row...