Hi List, I would like to optimize some data reading as well as clean up some code. The manual tells me to supply methods to colClasses but the manual and the methods documentation aren't helping... Can someone provide me an example please? Best, Brian R version 2.15.1 (2012-06-22) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets base other attached packages: [1] MASS_7.3-18
Brian <zenlines <at> gmail.com> writes:> > Hi List, > > I would like to optimize some data reading as well as clean up some > code. The manual tells me to supply methods to colClasses but the manual > and the methods documentation aren't helping... > Can someone provide me an example please? >Your post to the list from a minute before this seems to give an example ... do you still have a question, or is it resolved? Can you give us a reproducible example of what you're trying to do (e.g. the first few lines of your data file, what you tried, what your results were, and (if not obvious) why the results weren't what you wanted/expected)?
Maybe Matching Threads
- Any way to get read.table.ffdf() (in the ff package) to pass colClasses or comment.char parameters through to read.fwf() ?
- read.table(..., header == FALSE, colClasses = <vector with names attribute>)
- extending the colClasses argument in read.table
- read.table() and NULL for colClasses
- read.table(..., header == FALSE, colClasses = <vector with names attribute>)