Displaying 3 results from an estimated 3 matches for "kgr".
Did you mean:
gr
2012 Apr 05
4
Appropriate method for sharing data across functions
...cannot be interpreted but must be built first.
JN
Example using <<-
rm(list=ls())
optstart<-function(npar){ # create structure for optimization computations
# npar is number of parameters ?? test??
OPCON<<-list(MAXIMIZE=TRUE, PARSCALE=rep(1,npar), FNSCALE=1,
KFN=0, KGR=0, KHESS=0)
# may be other stuff
ls(OPCON)
}
add1<-function(){
OPCON$KFN<<-1+OPCON$KFN
test<-OPCON$KFN
}
OPCON<<-list(MAXIMIZE=TRUE, PARSCALE=rep(1,4), FNSCALE=1,
KFN=0, KGR=0, KHESS=0)
ls(OPCON)
print(add1())
print(add1())
print(ls.str())
rm(OPCON) # Tr...
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...A1r1qrG$R0TW*tY9)v2*@)=W5PXGpv!Ul5M~MwXj{u8~xe_5t
zM>qQjrtc7)owoN?(~WmE;>J61ah968ro1K*+|HB!?OdX*cyvA8LHl|-nw{QIX^rr=
zf?>P2Ai2x4&24QeAMJ_mw$wn!RjIQjyNc5jWu-bbqK|IBxQ2GeYgYUIU2oQT-cjVB
z8=S64dsD5q95hUImxGo$%Rvwnhe=QjSKT#>@v6IKvD_%^eogEIMStMQk*Qwv3PfKU
zJ5SNmyy)4UnCYVyb}x*Xv{h7XV9j){s_KgR1|9J#ucc#)&Txs}RLYZLg^U!Uc%ieE
zA-K|Tb|9=Y%*B|OD$FHDMQv~=PbK|3xlG6KRC3 at YE)5rVPGELOlwTT(iKc**VmpIX
zZU(E2Uil at Ngf2%&=Xjk*`1`OZr+lG7*@qZ3>n3rAq3UT!pL?bFO|ap+(!$<SBVjM<
zF*Z+(t!wOqdCqC)9QU-dxZXvKn)xd2`M4JqTdsCvv2vAeDzw>H?XZyuyKliY&Py`9
z#z2B#Kh at t)rBt-PR;ATIIy6!rH at b$FB...