hi dieter,

the method i'm using is in excel, copying the data, then in r

> w<-read.delim("clipboard")
> w<-as.data.frame(w)
 
i've been  doing a bit more fiddling, and have identified the 'class' of the
column that i'm having trouble with, is classified as 'factor' whilst the
rest are numeric.

if i just change that column to as.numeric of the column, this has appeared
to have solved the problem.  Has this changed that data at all though?

Thanks.


Dieter Menne wrote:
> 
> 
> 
> Katie2009 wrote:
>> 
>> I'm trying to analyse some excel data in R.  The problem is that when i
>> input the data with the first column as absolute values, everything works
>> fine, can analyse as normal.  When I leave the first column unchanged to
>> import negative numbers as well I get:
>> 
>> Error in storage.mode(y) <- "double" : 
>>   invalid to change the storage mode of a factor
>> In addition: Warning message:
>> In model.response(mf, "numeric") :
>>   using type="numeric" with a factor response will be ignored
>> 
>> 
> 
> You did not tell us anything how you got the data from Excel, so I have to
> guess. Try to re-arrange your Excel row so that the first (3 ? check the
> docs; which docs? your unknown function's) lines contain non-missing data.
> 
> Dieter
> 

-- 
View this message in context: 
http://www.nabble.com/R-Error%2C-very-odd....-tp23477195p23478471.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to