Re: [R] space in R

From: Vladimir Eremeev <wl2776_at_gmail.com>
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: http://www.nabble.com/space-in-R-tf3757462.html#a10620039
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_stat.math.ethz.ch 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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.