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 '

[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