Skip to content
Back to formatted view

Raw Message

Message-ID: <D525E660-8347-4517-80A1-35C268022639@gmail.com>
Date: 2011-10-17T12:22:57Z
From: michael.weylandt at gmail.com (R. Michael Weylandt
Subject: position of the end of a text file
In-Reply-To: <CAG_r7O6LTEjWjNc9cbkJ6b0Xx_y9y2=t0vPX5Nv6S5o=SeigpA@mail.gmail.com>

Couldn't you also just count the number of characters with nchar()?

Michael Weylandt

On Oct 17, 2011, at 1:57 AM, Henri-Paul Indiogine <hindiogine at gmail.com> wrote:

> I think I have it and my apologies for spamming the list.  I should
> not work this late on Sunday :-)
> 
> I think that it should be
> 
> as.integer(regexpr("$$", my.text.vector)
> 
> 
> 2011/10/16 Henri-Paul Indiogine <hindiogine at gmail.com>:
>> 
>> I tried the following
>> 
>> as.integer(regexpr("??", my.text.vector)
> 
> 
> -- 
> Henri-Paul Indiogine
> 
> Curriculum & Instruction
> Texas A&M University
> TutorFind Learning Centre
> 
> Email: hindiogine at gmail.com
> Skype: hindiogine
> Website: http://people.cehd.tamu.edu/~sindiogine
> 
> ______________________________________________
> 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.