prep.fuzzy error in R ade4 package -


i trying use prep.fuzzy function ade4 package fuzzy coding 2 invertebrate traits (size , functional feeding group) create distance matrix. keep encountering following error message:

error in fun(x[[i]], ...) :  fuzzy data set must prepared function prep.fuzzy 

here code:

size <- prep.fuzzy(traitscc[,6:12], col.blocks=7, row.w = rep(1, nrow(traitscc))) feedgp <- prep.fuzzy(traitscc[,66:73], col.blocks=8, row.w = rep(1, nrow(traitscc)))  # ok, use variables create distance matrix! ktab1 <- ktab.list.df(list(size, feedgp)) distrait <- dist.ktab(ktab1, c("f", "f"), option = c("scaledbyrange")) 

the error message when try run dist.ktab function on last line. ideas error message helpful (the data fuzzy coded)!! thanks.

i try reproduce error data set available in ade4:

data(bsetal97) size = prep.fuzzy(bsetal97$biol[,1:7], col.blocks=7) feedgp = prep.fuzzy(bsetal97$biol[,16:23], col.blocks=8) ktab1 <- ktab.list.df(list(size, feedgp)) distrait <- dist.ktab(ktab1, c("f", "f"), option = c("scaledbyrange")) 

and works... not able identify problem. please update ade4 , try again.

cheers


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -