[R] position of the end of a text file

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Mon Oct 17 14:22:57 CEST 2011


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.



More information about the R-help mailing list