Re: [R] specify blank in a string with special characters

2010-07-20 Thread Mark Heckmann
This was just what I wanted, thanks!! Am 20.07.2010 um 16:43 schrieb Duncan Murdoch: > On 20/07/2010 10:09 AM, Mark Heckmann wrote: >> will reformulate the question: >> >> I use strsplit() to split a string at the blanks. e.g. >> >> > strsplit("Split at blanks", " ") >> [[1]] >> [1] "Split" "a

Re: [R] specify blank in a string with special characters

2010-07-20 Thread Duncan Murdoch
On 20/07/2010 10:09 AM, Mark Heckmann wrote: will reformulate the question: I use strsplit() to split a string at the blanks. e.g. > strsplit("Split at blanks", " ") [[1]] [1] "Split" "at" "blanks" Now I would like to write something like a protected blank (like e.g. in LaTex) into t

Re: [R] specify blank in a string with special characters

2010-07-20 Thread Wu Gong
Hi, you can define delimiters strsplit("Split%at blanks", " |%") - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/specify-blank-in-a-string-with-special-characters-tp2295453p2295639.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] specify blank in a string with special characters

2010-07-20 Thread Mark Heckmann
will reformulate the question: I use strsplit() to split a string at the blanks. e.g. > strsplit("Split at blanks", " ") [[1]] [1] "Split" "at" "blanks" Now I would like to write something like a protected blank (like e.g. in LaTex) into the string that does not get split by strsplit(

Re: [R] specify blank in a string with special characters

2010-07-20 Thread Duncan Murdoch
On 20/07/2010 9:00 AM, Mark Heckmann wrote: is there a way to specify a blank in a string with special/escape characters? like: "and now a blankand text after the blank", where stand for the specification of the blank character The answer to your question is "yes", because you just

[R] specify blank in a string with special characters

2010-07-20 Thread Mark Heckmann
is there a way to specify a blank in a string with special/escape characters? like: "and now a blankand text after the blank", where stand for the specification of the blank character TIA Mark ––– Mark Heckmann Dipl. Wirt.-Ing. cand. Psych. Vorstr