[R] R design (was "Variable passed to function not used in function in select)

hadley wickham h.wickham at gmail.com
Wed Nov 12 00:09:47 CET 2008


>  That's why (I think) it should be an *** optional argument
> with default set to FALSE *** ... it's clear from the past traffic
> on the list (I won't take the time to dig up the thread
> references right now) that there is at the very least
> a significant minority of users who expect the opposite,
> or at least would like a reasonably transparent way
> (not involving chicken entrails or mysterious incantations :-) )
> to make this behavior happen when they do want it.

Is there a reason you don't just do options(stringAsFactors = F) ?
i.e. why not use character vectors which behave in almost all respects
identically to factors, except that they don't preserve levels.

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list