[R] * within quote

elyakhlifi mustapha
Tue, 15 May 2007 13:46:48 -0000

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]]