Re: [R] splitting multiple data in one column into multiple rows with one entry per column

2009-07-26 Thread jim holtman
Try this: > x <- read.table(textConnection("snp ensembl_gene_id + rs8032583 + rs1071600 ENSG0101605 + rs13406898 ENSG0167165 + rs7030479 ENSG0107249 + rs1244414

[R] splitting multiple data in one column into multiple rows with one entry per column

2009-07-26 Thread Felix Müller-Sarnowski
Dear R colleagues, I annotated a list of single nuclotide polymorphiosms (SNP) with the corresponding genes using biomaRt. The result is the following data.frame (pasted from R): snp ensembl_gene_id 1 rs8032583 2 rs1071600