is a mental cost to this, eg if you are deeply
focused on a complicated program flow, the %between% construct is a lot
easier to type out, and relate to, than the logically more complex
construct with && and <=/>=, at least in my experience.
--
mvh
Torbjø
%btwn%`
> function that would accept as its second argument either a two element
> numeric or alpha vector or a two column matrix of with the same number of
> rows as the first argument. Something along these lines:
>
>
> > `%btwn%` <- function(x,y) if(!is.null(dim(y))&
>
> In addition, SQL has a between operator
>
> > library(sqldf)
> > sqldf("select * from BOD where Time between 3 and 5")
> Time demand
> 13 19.0
> 24 16.0
> 35 15.6
>
--
mvh
Torbjørn Lindahl
[[alternative HTML version
3 matches
Mail list logo