Re: [R] inserting text lines in a dat frame

2008-02-06 Thread Richard . Cotton
I am trying to prepare a bed file to load as accustom track on the UCSC genome browser. I have a data frame that looks like the one below. x V1V2 V3 1 chr1 11255 55 2 chr1 11320 29 3 chr1 11400 45 4 chr2 21680 35 5 chr2 21750 84 6 chr2 21820 29 7 chr2 31890 46 8 chr3 32100

Re: [R] inserting text lines in a dat frame

2008-02-06 Thread jim holtman
Try this and see if it is what you want: x - read.table(textConnection( V1V2 V3 1 chr1 11255 55 2 chr1 11320 29 3 chr1 11400 45 4 chr2 21680 35 5 chr2 21750 84 6 chr2 21820 29 7 chr2 31890 46 8 chr3 32100 29 9 chr3 52380 29 10 chr3 66450 46 ), header=TRUE) cat(browser position

[R] inserting text lines in a dat frame

2008-02-05 Thread joseph
Hi Jim I am trying to prepare a bed file to load as accustom track on the UCSC genome browser. I have a data frame that looks like the one below. x V1V2 V3 1 chr1 11255 55 2 chr1 11320 29 3 chr1 11400 45 4 chr2 21680 35 5 chr2 21750 84 6 chr2 21820 29 7 chr2 31890 46 8 chr3 32100 29 9