# [R] a little question about R

Alec Stephenson astephen at efs.mq.edu.au
Wed Sep 8 02:45:50 CEST 2004

```letters[1:4]

Alec Stephenson
Department of Statistics
Macquarie University
NSW 2109, Australia

>>> " \$(AÃƒÃÃÃ€" <xmeng at capitalbio.com> 09/08/04 10:41am >>>
Hello,sir: Here's a little question about R which needs your help.Thanks in advance.
If I wanna make a sequence just like a,b,c,d (In other words,a vector consists of 4 characters :a,b,c,d ).How can I do it in a shortcut manner? Yes,I can do it as following: c("a","b","c","d") and the result is:[1] "a" "b" "c" "d".
But I remember there's a shortcut manner to do the same thing,something like
c("a":"d").But the system said:"Error in "a":"d" : NA/NaN argument" So I wonder the correct method to do it(I remember the expression is very similar with
c("a":"d")). Thanks from the bottom of my heart. My best regards!

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

```