>>>>> Viechtbauer, Wolfgang (NP) writes:
Thanks. Patches welcome :-)
Best
-k
>> -Original Message-
>> From: Kurt Hornik
>> Sent: Friday, October 11, 2024 14:18
>> To: Viechtbauer, Wolfgang (NP)
>> Cc: r-devel
>> Subject: Re: [Rd] E
> -Original Message-
> From: Kurt Hornik
> Sent: Friday, October 11, 2024 14:18
> To: Viechtbauer, Wolfgang (NP)
> Cc: r-devel
> Subject: Re: [Rd] Error message when calling t.test() and aov() with a factor
> variables
>
> >>>>> Viechtbauer, Wo
> Viechtbauer, Wolfgang (NP) writes:
> Hi all,
> Just noticed that the error that arises when calling t.test() with factors
> could be a bit clearer:
>> t.test(factor(c(3,1,2,4,3,5,4,5)), factor(c(2,1,2,3,4,5)))
> Error in var(x) : Calling var(x) on a factor x is defunct.
> Use something l
Hi all,
Just noticed that the error that arises when calling t.test() with factors
could be a bit clearer:
> t.test(factor(c(3,1,2,4,3,5,4,5)), factor(c(2,1,2,3,4,5)))
Error in var(x) : Calling var(x) on a factor x is defunct.
Use something like 'all(duplicated(x)[-1L])' to test for a constant