[R] Table Intersection

2012-01-18 Thread rantree
I've got two tables

first one(table1):

ID chromstart end

Ex1   2152  180
Ex2   10  2000  2220
Ex3   15  3000   4000

second one ( table2):

chrom  locationname
2 160  Alv
2190   GNN
2100   ARg
10  210   GGG
15 3200 ADSA

 What I have to do is to put name column in table1  when  the location of
the name  is between the start and end and chrom must be the sameit
will be this the result:

ID chromstart end   name
Ex1   2152  180   Alv
Ex2   10  2000  2220 GGG
Ex3   15  3000   4000 ADSA


How can i do this 

--
View this message in context: 
http://r.789695.n4.nabble.com/Table-Intersection-tp4306968p4306968.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Table Intersection

2012-01-19 Thread rantree
thank you a lot :)

--
View this message in context: 
http://r.789695.n4.nabble.com/Table-Intersection-tp4306968p4309929.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Venn Diagram help!!!!

2012-01-30 Thread rantree
Hi there ! I've got 7 Samples that may contain 29 differents kinds of
material every line below corresponds to a differente kind of material,
example: Sample 1, 2,3,5 and 6 has material 1  So I want to know how can
I do a Venn Diagram with the data below  ps ( it was generated by a csv,
where every line is sep with (";")) Can someone helps me ?
thanks

csv file :  

Sample.1;Sample.2;Sample3;Sample4;Sample6
Sample.1;Sample.3;Sample.6
.



> hs2
 V1   V2   V3   V4   V5   V6   V7
1  Sample.1 Sample.2 Sample.3 Sample.4 Sample.6  
2  Sample.1 Sample.3 Sample.6
3  Sample.1 Sample.2 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7
4  Sample.1 Sample.6 
5  Sample.1 Sample.2 
6  Sample.2 Sample.3 Sample.6
7  Sample.3 Sample.6 
8  Sample.3 Sample.6 
9  Sample.3 Sample.4 Sample.5 Sample.6 Sample.7  
10 Sample.3 Sample.5 Sample.6 Sample.7   
11 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7  
12 Sample.3 Sample.6 
13 Sample.3 Sample.5 Sample.6
14 Sample.3 Sample.4 Sample.7
15 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7  
16 Sample.3 Sample.4 
17 Sample.4 Sample.6 
18 Sample.4 Sample.5 Sample.6 Sample.7   
19 Sample.4 Sample.6 Sample.7
20 Sample.4 Sample.5 Sample.6
21 Sample.4 Sample.6 
22 Sample.4 Sample.5 Sample.6 Sample.7   
23 Sample.4 Sample.5 Sample.6 Sample.7   
24 Sample.4 Sample.5 Sample.6 Sample.7   
25 Sample.4 Sample.5 Sample.6 Sample.7   
26 Sample.4 Sample.6 Sample.7
27 Sample.4 Sample.6 
28 Sample.4 Sample.5 Sample.6 Sample.7   
29 Sample.4 Sample.5 Sample.6 Sample.7 

--
View this message in context: 
http://r.789695.n4.nabble.com/Venn-Diagram-help-tp4342882p4342882.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Venn Diagram help!!!!

2012-01-31 Thread rantree
Well i really need to do a Venn diagram :( 


--
View this message in context: 
http://r.789695.n4.nabble.com/Venn-Diagram-help-tp4342882p4345655.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.