library(som) library(knitr) 小<-c(1,1,1,1,1,0,0,0,0,1,0,0,0,0) 中<-c(0,0,0,0,0,1,1,1,1,0,0,0,0,0) 大<-c(0,0,0,0,0,0,0,0,0,0,1,1,1,1) 2本足<-c(1,1,1,1,1,1,0,0,0,0,0,0,0,0) 4本足<-c(0,0,0,0,0,0,1,1,1,1,1,1,1,1) 毛<-c(0,0,0,0,0,0,1,1,1,1,1,1,1,1) 蹄<-c(0,0,0,0,0,0,0,0,0,0,0,0,1,1) たてがみ<-c(0,0,0,0,0,0,0,0,1,0,0,1,1,0) 羽<-c(1,1,1,1,1,1,0,0,0,0,0,0,0,0) 狩猟<-c(0,0,0,0,1,1,1,0,1,1,1,1,0,0) 走る<-c(0,0,0,0,0,0,0,1,1,0,1,1,1,0) 飛ぶ<-c(1,0,1,1,1,0,0,0,0,0,0,0,0,0) 泳ぐ<-c(0,0,1,1,0,0,0,0,0,0,0,0,0,0) anim1<-data.frame(小,中,大,2本足,4本足,毛,蹄,たてがみ,羽,狩猟,走る,飛ぶ,泳ぐ) row.names(anim1)<-c("ハト","メンドリ","アヒル","ガチョウ","タカ","ワシ","キツネ","イヌ","オオカミ","ネコ","トラ","ライオン","ウマ","ウシ") kable(anim1)
|