Re: [R] bin a vector of continuous variables

2014-05-15 Thread Kehl Dániel
best, daniel Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; meghatalmazó: Assa Yeroslaviz [fry...@gmail.com] Küldve: 2014. május 15. 11:54 To: R help forum Tárgy: [R] bin a vector of continuous variables Hi all, I have a data.frame of

Re: [R] bin a vector of continuous variables

2014-05-15 Thread arun
Hi, check ?cut or ?findInterval dat <- read.table(text="partner1 partner2 Substract 1_5000_5001_1    1    5001  2282.3435 1_5000_10001_15000    1    10001  174.1275 1_5000_15001_2    1    15001  273.822 1_5000_20001_25000    1    20001  546.27 1_5000_25001_

[R] bin a vector of continuous variables

2014-05-15 Thread Assa Yeroslaviz
Hi all, I have a data.frame of three columns: partner1 partner2 Substract 1_5000_5001_1 1 5001 2282.3435 1_5000_10001_15000110001 174.1275 1_5000_15001_2115001 273.822 1_5000_20001_25000120001 546.27