[BioC] sub-setting arrays

Heidi Dvinge heidi at ebi.ac.uk
Mon Nov 28 15:42:22 CET 2011


Hi Assa,

> Hi everybody
>
> I would like to know if there is a way for sub-setting big data.frame of
> different chromosomes into separate data.frames for the specific
> chromosomes.
>
> I have the results of a microarray experiment in one huge excel sheet. one
> of the columns is df$Chromosomes
> I know I can sub-set it using
> for example:
> data_9=subset(data,Chromosome=="9")
> But I would like to know (probably for the next analysis) if there is a
> way
> of automating it. Can I, with one command separate my big file into 24
> separate data frames (chromosomes 1-22, X,Y)?
>
Try something like split(data, data$Chromosome)

HTH
\Heidi

> Thanks
> Assa
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>



More information about the Bioconductor mailing list