Displaying 3 results from an estimated 3 matches for "state7".
Did you mean:
state
2009 Aug 04
2
Caculate first difference from a dataframe; write a simulation
...>=-Inf & spread<= -0.02 & Level>3.24 & Level<=4.51,])
state5<-data.frame(mydat3[spread>-0.02 & spread<= 1.91 & Level>3.24 & Level<=4.51,])
state6<-data.frame(mydat3[spread>1.91 & spread<= Inf & Level>3.24 & Level<=4.51,])
state7<-data.frame(mydat3[spread>=-Inf & spread<= -0.02 & Level>4.51 & Level<=Inf,])
state8<-data.frame(mydat3[spread>-0.02 & spread<= 1.91 & Level>4.51 & Level<=Inf,])
state9<-data.frame(mydat3[spread>1.91 & spread<= Inf & Level>4....
2009 Aug 05
1
writing a simulation
...se help.
>>
>
> See Simpson reply to Q1
>
> ##Question2: How can I easily identify which out of the 9 states does ad
> fall into with Level =5.04 and spread=0.25?
> ##OUTPUT
> ad
> X6
> Level 5.04
> spread 0.25
> state state8
>
> But spread for state7 was -0.34?????
>
> Had it been 0.24, then this should work (some of the time.)
> > subset(mydat4, Level == 5.4 & spread==0.25)
> [1] Level spread change State
> <0 rows> (or 0-length row.names)
>
> Perhaps you meant to specify an "or" condition?
>
>...
2009 Jul 28
1
Sort a column in a dataframe
...3 5.2638 1.2602 4.792737 NA
NA
4 3.9840 3.9760 3.9560 0.8168 3.550524 NA
NA
5 5.6275 5.5775 5.5375 1.3975 5.007331 NA
NA
6 4.4290 4.4190 4.3980 0.8340 3.998781 NA
NA
State3 State4 State5 State6 State7 State8 State9
1 NA NA NA 6 NA NA NA
2 NA NA 5 NA NA NA NA
3 NA NA NA NA NA NA 9
4 NA NA NA 6 NA NA NA
5 NA NA NA NA NA NA 9
6 NA NA NA 6...