Re: [R] splitting a string by space except when contained within quotes

2012-11-29 Thread arun
  "Channel storage" "Rivulet storage" A.K. - Original Message ----- From: downtowater To: r-help@r-project.org Cc: Sent: Thursday, November 29, 2012 9:43 AM Subject: [R] splitting a string by space except when contained within quotes I've been trying to split a s

Re: [R] splitting a string by space except when contained within quotes

2012-11-29 Thread arun
se=""))  res1 #[1] "rainfall" "snowfall" "Channel storage " "Rivulet storage" A.K. - Original Message ----- From: downtowater To: r-help@r-project.org Cc: Sent: Thursday, November 29, 2012 9:43 AM Subject: [R] splitting a st

Re: [R] splitting a string by space except when contained within quotes

2012-11-29 Thread William Dunlap
fall""Channel storage" "Rivulet storage" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of downtowater > Sent: Thursda

Re: [R] splitting a string by space except when contained within quotes

2012-11-29 Thread Gabor Grothendieck
On Thu, Nov 29, 2012 at 9:43 AM, downtowater wrote: > I've been trying to split a space delimited string with double-quotes in R > for some time but without success. An example of a string is as follows: > > /rainfall snowfall "Channel storage" "Rivulet storage"/ > > It's important for us because

[R] splitting a string by space except when contained within quotes

2012-11-29 Thread downtowater
I've been trying to split a space delimited string with double-quotes in R for some time but without success. An example of a string is as follows: /rainfall snowfall "Channel storage" "Rivulet storage"/ It's important for us because these are column headings that must match the subsequent data.