[R] Coercion of percentages by as.numeric

2005-11-14 Thread Brandt, T. (Tobias)
Hi Given that things like the following work a - c(-.1, 2.7 ,B) a [1] -.12.7 B as.numeric(a) [1] -0.1 2.7 NA Warning message: NAs introduced by coercion I naively expected that the following would behave differently. b - c('10%', '-20%', '30.0%', '.40%') b [1] 10%

Re: [R] Coercion of percentages by as.numeric

2005-11-14 Thread Gabor Grothendieck
On 11/14/05, Brandt, T. (Tobias) [EMAIL PROTECTED] wrote: Hi Given that things like the following work a - c(-.1, 2.7 ,B) a [1] -.12.7 B as.numeric(a) [1] -0.1 2.7 NA Warning message: NAs introduced by coercion I naively expected that the following would behave

Re: [R] Coercion of percentages by as.numeric

2005-11-14 Thread Brandt, T. (Tobias)
-Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: 14 November 2005 06:21 PM On 11/14/05, Brandt, T. (Tobias) [EMAIL PROTECTED] wrote: Hi Given that things like the following work a - c(-.1, 2.7 ,B) a [1] -.12.7 B as.numeric(a) [1] -0.1 2.7

Re: [R] Coercion of percentages by as.numeric

2005-11-14 Thread Gabor Grothendieck
On 11/14/05, Brandt, T. (Tobias) [EMAIL PROTECTED] wrote: -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: 14 November 2005 06:21 PM On 11/14/05, Brandt, T. (Tobias) [EMAIL PROTECTED] wrote: Hi Given that things like the following work a -

Re: [R] Coercion of percentages by as.numeric

2005-11-14 Thread Marc Schwartz (via MN)
On Mon, 2005-11-14 at 19:07 +0200, Brandt, T. (Tobias) wrote: -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: 14 November 2005 06:21 PM On 11/14/05, Brandt, T. (Tobias) [EMAIL PROTECTED] wrote: Hi Given that things like the following work a