[R] boxplot - bclust

Peter Ehlers ehlers at ucalgary.ca
Tue Sep 4 00:32:22 CEST 2012


On 2012-09-03 08:34, Dominic Roye wrote:
> Hello everybody,
>
> I have a problem with the commando of boxplot -bclust.
> http://127.0.0.1:13155/library/e1071/html/boxplot.bclust.html
>
>
>> data(iris)
>> bc1 <- bclust(iris[,1:4], 3, base.centers=5)
> Committee Member: 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1) 8(1) 9(1) 10(1)
> Computing Hierarchical Clustering
>> boxplot(bc1)
> Warnmeldungen:
> 1: In if (x$datamean) { :
>    Bedingung hat Länge > 1 und nur das erste Element wird benutzt (Condition
> has length > 1 and only the first element is used) # It's normal? Why?
> 2: In if (x$datamean) { :
>    Bedingung hat Länge > 1 und nur das erste Element wird benutzt
> 3: In if (x$datamean) { :
>    Bedingung hat Länge > 1 und nur das erste Element wird benutzt
>>

These are warnings and I think that you can safely ignore them.
It looks like the code should replace the line

  if (x$datamean)

with something like

  if (!is.null(x$datamean))

Peter Ehlers

>
> Thank you for your help.
>
> Best regards,
>
> Dominic
>
> 	[[alternative HTML version deleted]]
>




More information about the R-help mailing list