[R] Problematic If-Else statement
David Winsemius
dwinsemius at comcast.net
Fri Sep 16 17:35:50 CEST 2011
On Sep 16, 2011, at 11:08 AM, David Winsemius wrote:
>
> On Sep 16, 2011, at 10:36 AM, Ben Ganzfried wrote:
>
>> Hi guys,
>>
snipped
>>
>> Second, I changed the first line of my code to:
>> tmp <-
>> ifelse(uncurated
>> $days_to_tumor_recurrence==NA,"norecurrence","recurrence")
>
> I do not know why your original did not succeed but this code should
> have been written:
>
> tmp <-
> ifelse(is,na(uncurated
> $days_to_tumor_recurrence),"norecurrence","recurrence")
^.^
Except that should have been a period.
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list