Skip to content
Prev 1730 / 63424 Next

An idea for something better than read.table

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
We could, and in a sense that is what I'm suggesting, but:

- the argument syntax is a bit clumsy, I'd like to have the variables
through a ... argument.

- scan *evaluates* the arguments and then looks at the type.
Evaluating things like

factor(levels=1:4,labels=c("A","B","C","D")) 

currently gives a "missing x" error, but even if we fixed that, it
could never give anything better than
factor(0)
Levels:  A B C D 

i.e. the levels= specification would be forgotten. The only way to
circumvent that is to have scan working on nonevaluated arguments.

So I thought that one might as well start over with a completely new
function.