R_VectorRecyle - アールメカブ

アールメカブ


R_VectorRecyle

こういうリサイクル方法もある.

sample.a <- c("A","A","A","B","B","B","B","B")
c("red","blue")[as.integer(as.factor(sample.a))]

A を赤に,B を緑にプロットできる

実行例としてR_SupportVectorMachinesを参照.

 
Last-modified: 2007-09-28 (金) 12:27:58 (6048d)