search for: claimsnum

Displaying 1 result from an estimated 1 matches for "claimsnum".

Did you mean: claimnum
2007 Dec 20
1
ifelse problem
...esults are not what I expect: > Sheet1$Claims[1:10] [1] NA 1 2 NA NA NA NA NA NA NA > Sheet1[1:10,"SubmissionStatus"] [1] Declined Bound Bound Bound Bound Bound Declined Dead Declined [10] Not Taken Levels: Bound Dead Declined Not Taken > Sheet1$Claimsnum <- NA > Sheet1$Claimsnum <- ifelse(Sheet1$SubmissionStatus != "Bound",99999, + ifelse(as.character(Sheet1$Claims)=="NA",0,Sheet1$Claims)) > > Sheet1$Claimsnum[1:10] [1] 99999 1 2 NA NA NA 99999 99999 99999 99999 > Here...