search for: piffer

Displaying 5 results from an estimated 5 matches for "piffer".

Did you mean: differ
2017 Jul 23
4
matching element of a vector to i-2nd element
I have a df with a vector v. For each element of the vector, I want to know whether the i-2nd element is the same as the ith element. For example: given v=c(A,C,D,C) the result should be: FALSE,FALSE,FALSE,TRUE. I attempted something using indexing in a for loop such as (bad, incorrect example): for (i in v){ if [i]==[i-2] print T else print F } However, this is obviously wrong. Can someone
2017 Jul 23
1
matching element of a vector to i-2nd element
...Cheers, > Bert > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sun, Jul 23, 2017 at 11:43 AM, Davide Piffer <pifferdavide at gmail.com> wrote: >> I have a df with a vector v. For each element of the vector, I want to >> know whether the i-2nd element is the same as the ith element. For >> example: >> given >> v=c(A,C,D,C) the result should be: >> FALSE,FALSE,FALS...
2017 Jul 23
0
matching element of a vector to i-2nd element
...ere is a no homework policy on this list. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Jul 23, 2017 at 11:43 AM, Davide Piffer <pifferdavide at gmail.com> wrote: > I have a df with a vector v. For each element of the vector, I want to > know whether the i-2nd element is the same as the ith element. For > example: > given > v=c(A,C,D,C) the result should be: > FALSE,FALSE,FALSE,TRUE. > > I atte...
2017 Jul 23
0
matching element of a vector to i-2nd element
Hi, On 07/23/2017 11:43 AM, Davide Piffer wrote: > I have a df with a vector v. For each element of the vector, I want to > know whether the i-2nd element is the same as the ith element. For > example: > given > v=c(A,C,D,C) the result should be: > FALSE,FALSE,FALSE,TRUE. > > I attempted something using indexing in...
2003 May 20
0
question about Tukey test
I'm using SAS for my statistical purpose and I'm triyng to jump in the R' world. How can i implement Tukey linear test in R? In sas-code my lines are : PROC GLM; BY PARCELLA; CLASS TESI; MODEL PROD=TESI; MEANS TESI/TUKEY lines; IN R: ab<-type.convert(a$tesi) a<-cbind(a,ab) cc<-anova(lm(prod~ab,data=a)) cc2<-aov(prod~ab,data=a) tt<-TukeyHSD(cc2,ordered=TRUE) but how can