Displaying 5 results from an estimated 5 matches for "yes1".
Did you mean:
yes
2023 Nov 06
0
I need to create new variables based on two numeric variables and one dichotomize conditional category
...gt; ifelse(0:1, log(-1:0), 1:2)
Warning in log(-1:0) : NaNs produced
[1] 1 -Inf
> ifelse(c(FALSE,FALSE), log(-1:0), 1:2)
[1] 1 2
I agree that nested ifelse is cumbersome. I wrote a function to address that:
#' Nested conditional element selection
#'
#' \code{ifelses(test1,yes1,test2,yes2,....,no)} is shorthand for
#' \code{ifelse(test1,yes1,ifelse(test2,yes2,....,no....))}. The inputs should
#' not be named.
#'
#' @param test1 usually \code{test} for the outer call to \code{\link{ifelse}}
#' @param yes1 \code{yes} for the outer call to \code{ifel...
2011 Dec 22
1
[LLVMdev] tail call optimization question
...%0 = icmp sle i64 %x.16, 0
br i1 %0, label %if.yes, label %if.no
if.yes: ; preds = %entry
%1 = add i64 %y.17, 1
br label %if.after
if.no: ; preds = %entry
%2 = icmp sle i64 %y.17, 0
br i1 %2, label %if.yes1, label %if.no2
if.after: ; preds = %if.after3, %if.yes
%3 = phi i64 [ %1, %if.yes ], [ %10, %if.after3 ]
ret i64 %3
if.yes1: ; preds = %if.no
%4 = sub i64 %x.16, 1
%5 = tail call fastcc i64 @ack.15(i64 %4, i6...
2010 Jul 12
0
Error in storage.mode(test) <- "logical"
...sqlFetch(a07.connect,'Analysis File 2007-2009') #puts dfc data into table mydata
str(dataset)
#this works and gives correct values
HGlt102009=dataset[,6]
HGBL10_F_2007 =dataset[,11]
HGmt122009=dataset[,7]
HGBL12_F_2007 = dataset[,16]
URRmt65Perc2009 = dataset[,3]
URRG65_F_2007=dataset[,22]
yes1=HGlt102009-HGBL10_F_2007
no1=HGlt102009-2
yes2=HGmt122009-HGBL12_F_2007
no2=HGmt122009-26
yes3=URRG65_F_2007-URRmt65Perc2009
no3=96-URRmt65Perc2009
Analysis2009 <- transform(dataset
, HGBlt10_Natl_Ave_or_Facility = recode(HGBL10_F_2007,"0:2='National'; else='Facility'"...
2013 Jan 08
0
bagging SVM Ensemble
...n1<- predict(modellin,newdata=testset, decision.values=F)
prediction2<- predict(modelpoly,newdata=testset, decision.values=F)
prediction3<- predict(modelrad,newdata=testset, decision.values=F)
prediction4<- predict(modeltan,newdata=testset, decision.values=F)
no1<-sum(prediction1==0)
yes1<-sum(prediction1==1)
vote1<-c()
if(yes1>no1) vote1<-1 else vote1<-0
no2<-sum(prediction2==0)
yes2<-sum(prediction2==1)
vote2<-c()
if(yes2>no2) vote2<-1 else vote2<-0
no3<-sum(prediction3==0)
yes3<-sum(prediction3==1)
vote3<-c()
if(yes3>no3) vote3<-1 e...
2003 Oct 21
0
3.0.0 install on AIX 4.3.3
.../locks does not exist
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = AERO65-NAMERICA
[test]
comment = For testing only, please
path = /usr/local/samba/tmp
read only = No
guest ok = Yes1
Any idea what's going on here?
Thanks for your help!