Re: [R] Splitting the Elements of character vector

2013-04-16 Thread arun
EURO   o_n 0.475 #3 EURO    1w 0.461 #4 EURO    1w 0.464 #5  USD   o_n 1.210 #6  USD   o_n 1.190 #7  USD    1w 1.410 #8  USD    1w 1.430 A.K. - Original Message - From: arun To: Katherine Gobin Cc: R help Sent: Tuesday, April 16, 2013 9:00 AM Subject: Re: [R]

Re: [R] Splitting the Elements of character vector

2013-04-16 Thread arun
    EURO    1w 0.464 #5  USD   o_n 1.210 #6  USD   o_n 1.190 #7  USD    1w 1.410 #8  USD    1w 1.430 A.K. - Original Message ----- From: Katherine Gobin To: r-help@r-project.org Cc: Sent: Tuesday, April 16, 2013 8:38 AM Subject: [R] Splitting the Elements of character vecto

Re: [R] Splitting the Elements of character vector

2013-04-16 Thread Gabor Grothendieck
On Tue, Apr 16, 2013 at 8:38 AM, Katherine Gobin wrote: > Dear R forum > > I have a data.frame > > df = data.frame(currency_type = c("EURO_o_n", "EURO_o_n", "EURO_1w", > "EURO_1w", "USD_o_n", "USD_o_n", "USD_1w", "USD_1w"), rates = c(0.47, 0.475, > 0.461, 0.464, 1.21, 1.19, 1.41, 1.43)) > > cu

[R] Splitting the Elements of character vector

2013-04-16 Thread Katherine Gobin
Dear R forum I have a data.frame df = data.frame(currency_type = c("EURO_o_n", "EURO_o_n", "EURO_1w", "EURO_1w", "USD_o_n", "USD_o_n", "USD_1w", "USD_1w"), rates = c(0.47, 0.475, 0.461, 0.464, 1.21, 1.19, 1.41, 1.43))   currency_type rates 1  EURO_o_n   0.470 2  EURO_o_n   0.475 3