Re: [R] numeric coercion when one or more elements is non numerice

2008-01-31 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO On Thu, 2008-01-31 at 12:57 -0800, Arthur Steinmetz wrote: > That did it. Thanks! > > What I was getting was > > > temp > GDP CPIYOY > 23832 3108.2 garbage > 23923 garbage 1.8 > 24015 3214.1 1.8 > 24107 3291.8 2 > > str(tem

Re: [R] numeric coercion when one or more elements is non numerice

2008-01-31 Thread Arthur Steinmetz
That did it. Thanks! What I was getting was > temp GDP CPIYOY 23832 3108.2 garbage 23923 garbage 1.8 24015 3214.1 1.8 24107 3291.8 2 > str(temp) `data.frame': 4 obs. of 2 variables: $ GDP :Error in importIntoEnv(impenv, impnames, ns, impvars) : objects '

Re: [R] numeric coercion when one or more elements is non numerice

2008-01-30 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO On Wed, 2008-01-30 at 07:53 -0800, Arthur Steinmetz wrote: > I don't understand this behavior. Why does the every data point get > trashed by data.matrix when there is one non-numeric element in the > array? Thanks. I suspect it is because your data

[R] numeric coercion when one or more elements is non numerice

2008-01-30 Thread Arthur Steinmetz
I don't understand this behavior. Why does the every data point get trashed by data.matrix when there is one non-numeric element in the array? Thanks. > temp GDP CPIYOY 19540 2098.1 garbage 19632 2085.4 0.9 19724 2052.5 0.8 19814 2042.4 1.1 > data.matrix(tem