R_Cut関数の使い方
#データを確認 table( wine00[,"PP"] ) length( table( wine00[,"PP"] ))
# 適当にブレークポイントを設定 myBreak <- c(80,83,86,89,92,95,98,102) cut( wine00[,"PP"] , breaks = myBreak, lab = rev(LETTERS[1:length(myBreak )-1 ]) )
Link: R_old_tips2(2036d)
Rの備忘録(4073d)
Last-modified: 2008-06-27 (金) 09:38:22 (6073d)