2018年9月27日
摘要: 【题目一】If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. T... 阅读全文
posted @ 2018-09-27 14:13 蔡军帅 阅读(298) 评论(0) 推荐(0)
摘要: 【题目一】If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of 阅读全文
posted @ 2018-09-27 14:13 蔡军帅 阅读(812) 评论(1) 推荐(1)
摘要: 循环 判断 函数 函数是一个对象,可以赋值 函数要放在调用函数的前面 输入输出 read.csv() 文本文件 csv是comma separated value的英文缩写,其读取逗号分隔的文本文件。 read.csv()与read.table()的区别可以看他们的默认参数值。 read.table 阅读全文
posted @ 2018-09-27 11:47 蔡军帅 阅读(3194) 评论(0) 推荐(0)
摘要: 循环 判断函数函数是一个对象,可以赋值 函数要放在调用函数的前面输入输出read.csv()------文本文件 csv是comma separated value的英文缩写,其读取逗号分隔的文本文件。 ... 阅读全文
posted @ 2018-09-27 11:47 蔡军帅 阅读(135) 评论(0) 推荐(0)
摘要: 创建数据框> patientID age diabates statu patientdata<-data.frame(patientID,age,diabates,status)attributes用于... 阅读全文
posted @ 2018-09-27 10:53 蔡军帅 阅读(149) 评论(0) 推荐(0)
摘要: 创建数据框 attributes用于看属性 数据框有矩阵特性:可用rownsmes(),colnames()对行列命名 因子,level可以修改因子,新增数据时必须先修改类别再修改数据。 阅读全文
posted @ 2018-09-27 10:53 蔡军帅 阅读(355) 评论(0) 推荐(0)