在使用抽样之前,之前学的内容忘得差不多了。
所以在使用本次例子之前,对获取该数据作下了解。
hyper<-read.csv("http://archive.ics.uci.edu/ml/machine-learning-databases/thyroid-disease/hypothyroid.data",header=F)
names<-read.csv("http://archive.ics.uci.edu/ml/machine-learning-databases/thyroid-disease/hypothyroid.names",header=F,sep='\t')[[1]]
> names
[1] hypothyroid, negative. age: sex:
[4] on_thyroxine: query_on_thyroxine: on_antithyroid_medication:
[7] thyroid_surgery: query_hypothyroid: query_hyperthyroid:
[10] pregnant: sick: tumor:
[13] lithium: goitre: TSH_measured:
[16] TSH: T3_measured: