Hi, 
 
I'm a PhD student and I want to use the function 'daisy' from the
package 'cluster' to compute dissimilarities. 
My variables are of mixed types so I use the argument 'stand' in daisy
to define the type of my variables. 
I have the following error message : 
Warning message:
binary variable(s) 13, 16, 17, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39 treated as interval scaled in:
daisy(basetraits, stand = FALSE, type = list(numeric = c(1, 7),  
I don't understand why R doesn't accept that I declare these binary
variables in symm or assym (depending on the variable). 
 
Thanking you in anticipation, 
Jeanne Vallet
 
PS : To help you to understand my question, my script is : 
aa<-file.choose()
basetraits<-read.csv2(aa, header = TRUE,row.names=1)
 
#variables declaration
 
attach(basetraits)
pdias=as.numeric(pdias)
longindex=as.numeric(longindex)
light=as.numeric(light)
humid=as.numeric(humid)
basic=as.numeric(basic)
azot=as.numeric(azot)
durflow=as.numeric(durflow)
height=as.ordered(height)
spread=as.ordered(spread)
begflow=as.ordered(begflow)
mycor=as.ordered(mycor)
piq=as.factor(piq)
lign=as.factor(lign)
grain=as.factor(grain)
ros=as.factor(ros)
semiros=as.factor(semiros)
leafy=as.factor(leafy)
autopoll=as.factor(autopoll)
geito=as.factor(geito)
insect=as.factor(insect)
wind=as.factor(wind)
suman=as.factor(suman)
winan=as.factor(winan)
monocarp=as.factor(monocarp)
polycarp=as.factor(polycarp)
phan=as.factor(phan)
cham=as.factor(cham)
hemi=as.factor(hemi)
geo=as.factor(geo)
thero=as.factor(thero)
seasaes=as.factor(seasaes)
seashiv=as.factor(seashiv)
seasver=as.factor(seasver)
everalw=as.factor(everalw)
everparti=as.factor(everparti)
endozoo=as.factor(endozoo)
epizoo=as.factor(epizoo)
aquat=as.factor(aquat)
wind=as.factor(wind)
detach(basetraits)
 
#dissimilarities calculation
 
library(cluster)
daisybase<-daisy(basetraits,stand=FALSE,type=list(numeric=c(1,7),ordrati
o=c(8,11),symm=c(12,14),asymm=c(15,40)))
 
 

	[[alternative HTML version deleted]]

