Re: [R] extract data from a data frame field

2011-06-06 Thread jim holtman
Here is a start; you can change the column names: > x chr startend peak_loc cluster_TC strand peak_TC 1 chr1 564620 564649 chr1:564644..564645,+ 94 + 10 2 chr1 565369 565404 chr1:565371..565372,+217 + 8 3 chr1 565463 565541 chr1:565480..565

[R] extract data from a data frame field

2011-06-06 Thread ads pit
Hi all, I am given the a data frame in which one of the columns has more information together- see column 4, peak_loc: chr startend peak_loc cluster_TC strand peak_TC 1 chr1 564620 564649 chr1:564644..564645,+ 94 + 10 2 chr1 565369 565404 chr1:565371..565372,+