[R] * within quote

From: elyakhlifi mustapha <elyakhlifi_mustapha_at_yahoo.fr>
Date: Tue, 15 May 2007 13:46:48 +0000 (GMT)


hello,

I have an argument of a the list a like this

> a[[18]]

[1] "C744=(C627*C177)/100"

and I wanna seperate the character and the mathematics symbol to use it like a formula and why when I used the strsplit function i obtain as follow

> strsplit(a[[18]], '\\W')

[[1]]
[1] "C744" "" "C627" "C177" "" "100"

and as follow

> strsplit(a[[18]], '\\w')

[[1]]
 [1] "" "" "" "" "=(" "" "" "" "*" "" "" "" ")/" "" ""

I don't understand why the star "*" doesn't create space between "C627" and "C177"


        [[alternative HTML version deleted]]



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 - 13:59:39 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 - 15:02:02 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.