Skip to content
Back to formatted view

Raw Message

Message-ID: <AANLkTi=79Jg8iPtvZaLDyZ_rPoE1ufqZOsC2h8ne9dFX@mail.gmail.com>
Date: 2010-12-30T21:17:51Z
From: Gabor Grothendieck
Subject: Analysing Character Strings for subsequent frequency analysis
In-Reply-To: <4D1CC975.8010200@btinternet.com>

On Thu, Dec 30, 2010 at 1:03 PM, bob stoner <bob.stoner at btinternet.com> wrote:
> Hi
> I'm trying to get to grips with R and establish R as a teaching medium in my
> secondary school. I would like to use R to analyse text so I can produce
> frequency analysis of the text for subsequent examination of ciphers. I can
> produce code in VBA but I am struggling when writing in R to examine each
> character. There must be a clear method using the vectorised format of R.
> Furthermore, how do you substr a text string and reference each letter? I
> can use nchar to see how many letters per string but not to select each
> letter. I would prefer to remain in R and not deviate to Python etc as
> getting R onto the school mainframe has been a long journey...
> Many thanks
>
> Bob Stoner
> Sleaford, Lincolnshire, UK

Google for:

   CRAN Task View on Natural Language Processing

for an overview of the addon packages for analyzing text.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com