Re: [R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Céline Lüscher
inate, data=data) x y 1 2 3 4 5 6 205550 7 205550 604100 8 9 205600 604150 10 205600 604100 Best regards, C. Gesendet von Mail für Windows 10 Von: Jim Lemon Gesendet: vendredi, 23 ju

[R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Céline Lüscher
Hi everyone, My database has 3 columns : the x coordinates, the y coordinates and the value of G for every individual (20 in total). I would like to have the x,y coordinates of individuals, Under these conditions : the distance to the reference coordinates must be under or equal to 50 meters +

Re: [R] Help: ifelse selection for x,y coordinates

2017-06-23 Thread Céline Lüscher
;) + return(xy) + } > kk1<-kk(x.Koordinate, y.Koordinate, data=data) > kk1<-kk1[rowSums(is.na(kk1)) != ncol(kk1),] > kk1 x y 6 205550 NA 7 205550 604100 9 205600 604150 10 205600 604100 Now it looks great  Regards, C. Gesendet von Mail für Windows 10 Von: An

[R] comparition of occurrence of multiple variables between two dataframes

2017-09-12 Thread Céline Lüscher
Hi everyone, I need your help to solve a problem with occurrence and two dataframes. I have an excel table of 15200 lines. Each line correspond to a tree analyzed for its structures. I have all the structures in columns (48 structures). The occurrence of these structures has been counted on

Re: [R] comparition of occurrence of multiple variables between two dataframes

2017-09-12 Thread Céline Lüscher
:24 An: Céline Lüscher Cc: r-help@r-project.org Betreff: Re: [R] comparition of occurrence of multiple variables between two dataframes Do you have a simplified example with a code? It is not clear to me what do you mean by tree but if you refer to tree data structure, maybe you could change