Skip to content
Back to formatted view

Raw Message

Message-ID: <80b45a8c0911041404q5c2573d4u220e4decc47d6193@mail.gmail.com>
Date: 2009-11-04T22:04:14Z
From: Remko Duursma
Subject: spliting a word into letters
In-Reply-To: <26204628.post@talk.nabble.com>

strsplit("hello","")[[1]]



r



-------------------------------------------------
Remko Duursma
Post-Doctoral Fellow

Centre for Plants and the Environment
University of Western Sydney
Hawkesbury Campus
Richmond NSW 2753

Dept of Biological Science
Macquarie University
North Ryde NSW 2109
Australia

Mobile: +61 (0)422 096908
www.remkoduursma.com



On Thu, Nov 5, 2009 at 8:07 AM, mirauta <bmirauta at yahoo.com> wrote:
>
> Hello,
> Is there any function to split a word into letters?
> (eg: "AAACC" into "A","A","A","A""C","C" )
> I need to load some ADN sequences and ussualy these are writen in words
> without spaces between letters.
>
> Thanks,
> Bogdan
> --
> View this message in context: http://old.nabble.com/spliting-a-word-into-letters-tp26204628p26204628.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>