[BioC] Scan not respecting what
Martin Morgan
mtmorgan at fhcrc.org
Thu Aug 26 06:57:49 CEST 2010
On 8/25/2010 9:21 PM, Gaston Fiore 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?
Hi Gaston --
The 'what' argument is an instance of the data type to be parsed, so
what=integer() or what=1.
Hope that helps.
Martin
> Thanks a lot,
>
> -Gaston
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> 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