Message-ID: <497B56A1.1070800@statistik.tu-dortmund.de>
Date: 2009-01-24T17:57:53Z
From: Uwe Ligges
Subject: Cloud Function Error
In-Reply-To: <430f4dc90901240837r4829bc87w9f1da1c5c79ff09e@mail.gmail.com>
Steven Mortimer wrote:
> I have created a 5 column matrix of the data and here have shown the
> variable names of each column. I do not understand the error message given
> when I try to run the cloud function Thank you in advance for your help.
>
>> V1<-data[,1]
>> V2<-data[,2]
>> V3<-data[,3]
>> V4<-data[,4]
>> Gender<-data[,5]
>> library(lattice)
>> cloud(V1~V2*V3)
At least one of V1, V2 or V3 is not a vector that can be coerced to be
numeric, i.e. cannot be plotted this way.
Take a look at the data types / modes and you will see what is not OK:
str(V1)
str(V2)
str(V3)
Uwe Ligges
> Error in extend.limits(range(as.numeric(z), finite = TRUE)) :
> (list) object cannot be coerced to type 'double'
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.