height<-c(-1.565247584,-1.341640786,-1.118033989,-0.894427191,-0.670820393,-0.447213595,-0.223606798,0,0.223606798,0.447213595,0.670820393,0.894427191,1.118033989,1.341640786,1.565247584) weight<-c(-1.402268666,-1.273225538,-1.079660844,-0.886096151,-0.692531458,-0.498966765,-0.305402072,-0.111837378,0.146248879,0.339813573,0.59789983,0.855986088,1.114072345,1.436680167,1.759287989) w1<-data.frame(height,weight) row.names(w1)<-c("A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15") w2<-prcomp(w1) library(xtable) print(xtable(summary(w2)$importance[,1:2],digits=4),type="html")
|