[BioC] Rle factors, table and empty levels

Valerie Obenchain vobencha at fhcrc.org
Tue Oct 30 04:13:05 CET 2012


Thanks Pete. I'll look into it.

Valerie

On 10/29/12 14:28, Peter Haverty wrote:
> Dear Group,
>
> table(Rle) seems to ignore empty levels.
>
> x = Rle(c(2,3,1,2,3,2),rep(2,6))
> levels(x) = as.character(0:5)
> table(x)
> table(factor(as.numeric(x),levels=as.character(0:5)))
>
> I am using R 2.15.1 and IRanges 1.17.1.
>
> Regards,
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genentech, Inc.
> phaverty at gene.com
>
> _______________________________________________
> 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