strsplit(x, split= " ")


2013/7/3 Dan Murphy <chiefmurphy@gmail.com>

> I have a vector of strings that contain mathematical expressions. E.g.,
> x <- c("5 <= 7", "z = 1+2")
> and I would like to decompose each expression into its left- and
> right-hand-side components etc., output something like
>
> "5" "<=" "7"
> "z" "=" "1" "+" "2"
>
> Is there something built into the R language to accomplish this?
> Thanks for advance.
> Dan
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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.
>



-- 
Sincerely yours,
Yulia Matveeva,
Department of Statistical Modelling,
Faculty of Mathematics and Mechanics,
St Petersburg State University, Russia

	[[alternative HTML version deleted]]

