Displaying 10 results from an estimated 10 matches for "state3".
Did you mean:
state
2009 Aug 01
2
Add columns in a dataframe and fill them from another table according to a criteria
...table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put these probabilities
in my dataframe mydata(given after the prob table).
Prob of States
Changes State1 State2 State3 State4
a Pa1 Pa2 Pa3 Pa4
b Pb1 Pb2 Pb3 Pb4
c Pc1 Pc2 Pc3 Pc4
d Pd1 Pd2 Pd3 Pd4
and I have a dataframe(with 93 rows) called mydata part of which(6 rows) is
given below where I want to fill in the las...
2009 Jul 31
1
Fill dataframe from a table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below
Prob of States
Changes State1 State2 State3 State4
A Pa1 Pa2 Pa3 Pa4
B Pb1 Pb2 Pb3 Pb4
C Pc1 Pc2 Pc3 Pc4
D Pd1 Pd2 Pd3 Pd4
and I have a dataframe called mydata which is given below where I want to
fill in the last four columns of probabilitie...
2009 Aug 04
2
Caculate first difference from a dataframe; write a simulation
...lowest=T)
summary(z.shape)
#to identify States in mydat3
attach(mydat3)
state1<-data.frame(mydat3[spread>=-Inf & spread<= -0.02 & Level>=-Inf & Level<=3.24,])
state2<-data.frame(mydat3[spread>-0.02 & spread<= 1.91 & Level>=-Inf & Level<=3.24,])
state3<-data.frame(mydat3[spread>1.91 & spread<= Inf & Level>=-Inf & Level<=3.24,])
state4<-data.frame(mydat3[spread>=-Inf & spread<= -0.02 & Level>3.24 & Level<=4.51,])
state5<-data.frame(mydat3[spread>-0.02 & spread<= 1.91 & Level>...
2012 Jun 28
1
undefined S4 class in parallel computing at snowfall
...on(bb = 'character', cc = "catt"))
f1 <- function(y1) { new('catt', aa = y1 + 1) }
f3 <- function(y2, y3) { new('dogg', bb=c(y2, 'GA'), cc = f1(y3)) }
dat <- 1:5
f1(dat)
f3('NY', dat)
sapply(c("state1", 'state2', 'state3'), f3, dat)
sfExportAll()
sfClusterEval(ls())
sfSapply(c("s1", 's2', 's3'), f3, dat)
sfStop()
# sfSapply generates the following error
# Error in checkForRemoteErrors(val) :
# 2 nodes produced errors; first error: "dogg" is not a defined class
==...
2009 Jul 28
1
Sort a column in a dataframe
...5.3412 5.2913 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...
2009 Aug 05
1
writing a simulation
...ad lies in according to the breaks identified in table(z.shape,z.level)
attach(ad)
state1<-data.frame(ad[spread>=-Inf & spread<= -0.02 & Level>=2.8 & Level<=3.24,])
state2<-data.frame(ad[spread>-0.02 & spread<= 1.91 & Level>=2.8 & Level<=3.24,])
state3<-data.frame(ad[spread>1.91 & spread<= 2.5 & Level>=2.8 & Level<=3.24,])
state4<-data.frame(ad[spread>=-Inf & spread<= -0.02 & Level>=3.24 & Level<=4.51,])
state5<-data.frame(ad[spread>-0.02 & spread<= 1.91 & Level>=3.24 &...
2019 Jan 25
0
[klibc:update-dash] [SHELL] Optimize dash -c "command" to avoid a fork
...* exit status is checked; ignore -e flag */
+
int evalstring(char *, int);
union node; /* BLETCH for ansi C */
void evaltree(union node *, int);
diff --git a/usr/dash/main.c b/usr/dash/main.c
index 7df3c441..f79ad7dd 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -171,7 +171,7 @@ state2:
state3:
state = 4;
if (minusc)
- evalstring(minusc, 0);
+ evalstring(minusc, sflag ? 0 : EV_EXIT);
if (sflag || minusc == NULL) {
state4: /* XXX ??? - why isn't this before the "if" statement */
diff --git a/usr/dash/mktokens b/usr/dash/mktokens
index 43d76ce1..fa6ccf78 100644
---...
2020 Mar 28
0
[klibc:update-dash] dash: [SHELL] Optimize dash -c "command" to avoid a fork
...* exit status is checked; ignore -e flag */
+
int evalstring(char *, int);
union node; /* BLETCH for ansi C */
void evaltree(union node *, int);
diff --git a/usr/dash/main.c b/usr/dash/main.c
index 7df3c441..f79ad7dd 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -171,7 +171,7 @@ state2:
state3:
state = 4;
if (minusc)
- evalstring(minusc, 0);
+ evalstring(minusc, sflag ? 0 : EV_EXIT);
if (sflag || minusc == NULL) {
state4: /* XXX ??? - why isn't this before the "if" statement */
diff --git a/usr/dash/mktokens b/usr/dash/mktokens
index 43d76ce1..fa6ccf78 100644
---...
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone,
When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE
to y then I cannot boot Xen; there is a crash. If I turn
CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has
booted, xenpm works and gives some sane output, see below. I have
tested this with kernels 3.2 to 3.4.6.
Is it impossible to use INTEL_IDLE with Xen? If this is a known issue
then maybe
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone,
When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE
to y then I cannot boot Xen; there is a crash. If I turn
CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has
booted, xenpm works and gives some sane output, see below. I have
tested this with kernels 3.2 to 3.4.6.
Is it impossible to use INTEL_IDLE with Xen? If this is a known issue
then maybe