安装Package后即可得到studentdata,见下列代码:
>install.packages("LearnBayes")
>require(LearnBayes)
>data("studentdata")
> str(studentdata)
'data.frame': 657 obs. of 11 variables:
$ Student: int 1 2 3 4 5 6 7 8 9 10 ...
$ Height : num 67 64 61 61 70 63 61 64 66 65 ...
$ Gender : Factor w/ 2 levels "female","male": 1 1 1 1 2 1 1 1 1 2 ...
$ Shoes : num 10 20 12 3 4 NA 12 25 30 10 ...
$ Number : int 5 7 2 6 5 3 3 4 3 7 ...
$ Dvds : num 10 5 6 40 6 5 53 20 40 22 ...
$ ToSleep: num -2.5 1.5 -1.5 2 0 1 1.5 0.5 -0.5 2.5 ...
$ WakeUp : num 5.5 8 7.5 8.5 9 8.5 7.5 7.5 7 8.5 ...
$ Haircut: num 60 0 48 10 15 25 35 25 30 12 ...
$ Job : num 30 20 0 0 17.5 0 20 0 25 0 ...
$ Drink : Factor w/ 3 levels "milk","pop","water": 3 2 1 3 2 3 3 2 3 1 ...