When running > AB.fit=adaboost(ylearn, xlearn, xtest, presel=0) I got the 
following error:

Error in `[[<-.data.frame`(`*tmp*`, preds, value = c(4L, 6L, 6L, 6L, 3L, : 

  replacement has 186 rows, data has 62

The data structure is attached below:

[1] "ylearn"
 [1] 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 
0 0 0 0
[40] 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1

[1] "xlearn"
    rs2289472 rs1551398 rs7927894
X18 "CT"      "AA"      "CT" 
X19 "TT"      "AA"      "CC" 
X33 "TT"      "AG"      "TT" 
X35 "TT"      "AA"      "CT" 
X36 "CC"      "AA"      "CT" 
X41 "CT"      "AA"      "CT" 
X46 "TT"      "AA"      "CT" 
X65 "CT"      "AG"      "CT" 
X77 "CC"      "AA"      "CT" 
X25 "TT"      "AG"      "TT" 
X26 "CT"      "GG"      "CC" 
X53 "CT"      "GG"      "CC" 
X55 "CT"      "AG"      "CC" 
X57 "CT"      "AG"      "TT" 
X71 "CT"      "AA"      "CT" 
X4  "TT"      "AA"      "CT" 
X7  "CT"      "AG"      "CT" 
X21 "TT"      "AA"      "CT" 
X22 "TT"      "AA"      "TT" 
X31 "CT"      "AG"      "CT" 
X32 "CT"      "AG"      "TT" 
X37 "CT"      "AA"      "CT" 
X50 "TT"      "AA"      "CT" 
X66 "CC"      "AA"      "CC" 
X28 "CT"      "AG"      "CC" 
X29 "CT"      "AG"      "CT" 
X30 "CT"      "GG"      "CT" 
X56 "CT"      "AG"      "CC" 
X62 "CT"      "GG"      "CC" 
X63 "TT"      "GG"      "CT" 
X1  "CT"      "AG"      "CT" 
X3  "TT"      "AG"      "TT" 
X8  "CC"      "GG"      "CC" 
X9  "TT"      "AA"      "CT" 
X38 "CT"      "GG"      "TT" 
X40 "TT"      "AG"      "CT" 
X43 "CT"      "AG"      "CC" 
X45 "TT"      "AA"      "CC" 
X47 "TT"      "AA"      "TT" 
X11 "TT"      "AA"      "TT" 
X13 "CT"      "GG"      "CT" 
X15 "CT"      "AG"      "TT" 
X16 "TT"      "AA"      "CT" 
X27 "CT"      "AG"      "CC" 
X58 "TT"      "AG"      "CC" 
X70 "CT"      "AA"      "CC" 
X2  "CC"      "AA"      "CT" 
X6  "CT"      "AA"      "CT" 
X10 "CC"      "AA"      "CC" 
X14 "TT"      "AA"      "TT" 
X39 "TT"      "GG"      "CT" 
X44 "CT"      "AG"      "CT" 
X49 "TT"      "AG"      "TT" 
X51 "TT"      "AA"      "CT" 
X67 "CT"      "AA"      "CC" 
X12 "CT"      "AG"      "CT" 
X54 "CT"      "AG"      "CC" 
X61 "CT"      "AA"      "CC" 
X68 "CT"      "AG"      "CC" 
X69 "CT"      "AG"      "TT" 
X73 "TT"      "AA"      "CC" 
X74 "TT"      "GG"      "CT" 

[1] "xtest"
   rs2289472 rs1551398 rs7927894
5  "TT"      "AA"      "TT" 
20 "CT"      "AG"      "CC" 
23 "CT"      "AG"      "CT" 
24 "CC"      "GG"      "TT" 
34 "CC"      "AA"      "TT" 
42 "CT"      "AA"      "CT" 
48 "CC"      "AG"      "CC" 
59 "CT"      "AA"      "CC" 
75 "CT"      "AG"      "CT" 
17 "CT"      "AG"      "CT" 
52 "CT"      "AA"      "TT" 
60 "CT"      "AG"      "CT" 
64 "TT"      "AA"      "CT" 
72 "TT"      "AG"      "CT" 
76 "TT"      "AA"      "CT" 

do you know what's the protential problem? Thanks in advance.

Xumin
	[[alternative HTML version deleted]]

