åæ <xmeng <at> capitalbio.com> writes:

: Thanks a lot for your timely rely.
: I still wonder whether I can use "a":"d" instead of 1:4.
: I remember I fulfill it successfully according to the guidance of some 
materials on R,but fail to find it now.

You could define your own seq function and operator:

R> "%:%" <- seq.character <- function(x,y) letters[letters >= x & letters <= y]
R> seq("a", "d")
[1] "a" "b" "c" "d"
R> "a" %:% "d"
[1] "a" "b" "c" "d"

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to