Re: [R] space in R

From: Vladimir Eremeev <>
Date: Tue, 15 May 2007 03:10:44 -0700 (PDT)

elyakhlifi mustapha wrote:
> hello,
> can you help me I need to seperate words and symbol in a mathematics
> formula as follow
> C744=(C627*C177)/100
> How could I do please?

If you need to simply split a character vector, use strsplit.

This and previous your posts suggest you need to create a parser. parse can do that.

However, R doesn't seem to me an appropriate tool for the lexical analysis. bison and yacc could be the right choise.

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 May 2007 - 10:19:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 10:31:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.