[BioC] Scan not respecting what

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Aug 26 06:56:28 CEST 2010


Hi,

On Thu, Aug 26, 2010 at 12:21 AM, Gaston Fiore <gaston.fiore at gmail.com> wrote:
> Hello everyone,
>
> By some (strange to me) reason, scan isn't respecting the what argument:
>
>> temp <- scan(file = "~/data/WT/NS20WTR1ChrReadsF.txt", what = 'integer', sep = ",", quote = 'NULL', comment.char = "")
> Read 26042606 items
>> class(temp)
> [1] "character"
>> typeof(temp)
> [1] "character"
>
> I'm new to R, and I apologize if the mistake is obvious, but could someone explain to me why this is the case?

What does `head(temp)` give you?


-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list