Displaying 2 results from an estimated 2 matches for "for_all_".
Did you mean:
for_all
2023 Nov 08
1
c(NA, 0+1i) not the same as c(as.complex(NA), 0+1i)?
...t; I think you have confused yourself, and everything behaves as expected:
> >>
> >> As we now have (in R-devel, since {r85233 | maechler | 2023-09-29 })
> >>
> >> ? ?as.complex(x)? now returns ?complex(real=x, imaginary=0)?
> >> for_all_ numerical and logical ?x?, notably also for ?NA?
> >> or ?NA_integer_?.
> >>
> >> ==> as.complex(NA) is indeed complex(real = NA, imaginary = 0)
> >>
> >> And now, in your
> >>
> >> c(as.complex(N...
2023 Nov 09
1
c(NA, 0+1i) not the same as c(as.complex(NA), 0+1i)?
...have confused yourself, and everything behaves as expected:
>> >>
>> >> As we now have (in R-devel, since {r85233 | maechler | 2023-09-29 })
>> >>
>> >> ? ?as.complex(x)? now returns ?complex(real=x, imaginary=0)?
>> >> for_all_ numerical and logical ?x?, notably also for ?NA?
>> >> or ?NA_integer_?.
>> >>
>> >> ==> as.complex(NA) is indeed complex(real = NA, imaginary = 0)
>> >>
>> >> And now, in your
>> >>
>> &g...