Displaying 2 results from an estimated 2 matches for "sanaa".
Did you mean:
sanad
2009 Feb 13
2
extracting parts of words or extraxting letter to use in ifelse-func.
...n, but i don't know how
to do it.
I want to make these five variables;
b2$PRRSvac <- ifelse(b2$status=='A' | b2$status=='Aa',1,0)
b2$PRRSdk <- ifelse(b2$status=='B' | b2$status=='Bb',1,0)
b2$sanVac <- ifelse(b2$status=='C' | b2$status=='sanAa',1,0)
b2$sanDk <- ifelse(b2$status=='D' | b2$status=='sanBb',1,0)
b2$totalvac <- ifelse(b2$status=='San',1,0)
And
b2$UGT <- ifelse(b2$status=='UGT',1,0)
b2$KOM <- ifelse(b2$status=='KOM',1,0)
But, as one from this forum told me, it d...
2009 Feb 13
0
Odp: Odp: extracting parts of words or extraxting letter to use in ifelse-func.
...hese five variables;
> >>
> >> b2$PRRSvac <- ifelse(b2$status=='A' | b2$status=='Aa',1,0)
> >> b2$PRRSdk <- ifelse(b2$status=='B' | b2$status=='Bb',1,0)
> >> b2$sanVac <- ifelse(b2$status=='C' | b2$status=='sanAa',1,0)
> >> b2$sanDk <- ifelse(b2$status=='D' | b2$status=='sanBb',1,0)
> >> b2$totalvac <- ifelse(b2$status=='San',1,0)
> >
> > Basically you do not need ifelse
> >
> > b2$status=='San'
> >
> > gi...