[BioC] modify colClasses in read.columns?

Herve Pages hpages at fhcrc.org
Fri Apr 25 20:23:47 CEST 2008


Hi Henrik,

I don't have read.columns() when I start a fresh R session so it looks like it's
not part of the default R installation. Which package does it belong to?
Providing your sessionInfo() is always a good idea as it would at least give
us a clue of where to look for the read.columns() function. Also a small example
(with code) of what you are trying to do would be very useful.

Thanks!
H.


Henrik Parn wrote:
> Dear all,
> 
> I have received some data sets with some variables that certainly looks 
> like numeric: they are individual IDs that are composed of some numbers 
> separated by ".", e.g. 6534231.18, 8783234.20. Not surprisingly they are 
> treated as numeric by read.columns, and 8783234.20 ends up like 
> 8783234.2 when read to R. When I used read.table I specified in 
> colClasses that these variables should be read as |characters. However, 
> in read.columns| |required.col| and |text.to.search| is used to set up 
> the |colClasses| argument of |read.table|.| Does anyone have a 
> suggestion of how I can modify the read.columns function so I can 
> specify the colClasses myself?
> 
> Thanks in advance!   |
>



More information about the Bioconductor mailing list