上一页 1 ··· 22 23 24 25 26
摘要: 7.1描述性统计分析> vars head(mtcars[vars]) mpg hp wtMazda RX4 21.0 110 2.620Mazda RX4 Wag 21.0 110 2.875Datsun 710 22.8 93 2.320Hornet 4 Drive 21.4 110 3.215... 阅读全文
posted @ 2015-04-19 22:48 机器学习算法与Python 阅读(1507) 评论(0) 推荐(1) 编辑
摘要: Control StructuresControl structures in R allow you to control the flow of execution of the program, depending onruntime conditions. Common structures... 阅读全文
posted @ 2015-04-19 17:22 机器学习算法与Python 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 6.3直方图 hist()其中的x是一个由数据值组成的数值向量。参数freq=FALSE表示根据概率密度而不是频数绘制图形。参数breaks用于控制组的数量。在定义直方图中的单元时,默认将生成等距切分。par(mfrow=c(2,2))hist(mtcars$mpg)#简单直方图hist(mtcar... 阅读全文
posted @ 2015-04-18 16:10 机器学习算法与Python 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: SubsettingThere are a number of operators that can be used to extract subsets of R objects.[ always returns an object of the same class as the origina... 阅读全文
posted @ 2015-04-17 11:11 机器学习算法与Python 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Reading DataThere are a few principal functions reading data into R.read.table, read.csv, for reading tabular datareadLines, for reading lines of a te... 阅读全文
posted @ 2015-04-16 21:56 机器学习算法与Python 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 第六章 基本图形6.1条形图条形图通过垂直的或水平的条形展示了类别型变量的分布(频数)。函数:barplot(height)6.1.1简单的条形图6.1.2推砌条形图和分组条形图如果height是一个矩阵而不是一个向量,则绘图结果将是一幅堆砌条形图或分组条形图。若beside=FALSE(默认值),... 阅读全文
posted @ 2015-04-16 21:19 机器学习算法与Python 阅读(694) 评论(0) 推荐(0) 编辑
摘要: ObjectsR has five basic or “atomic” classes of objects: character numeric (real numbers) integer complex logical (True/False)The most basic object is ... 阅读全文
posted @ 2015-04-15 22:07 机器学习算法与Python 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 5.4 控制流 语句(statement)是一条单独的R语句或一组复合语句(包含在花括号{ } 中的一组R语句,使用分号分隔); 条件(cond)是一条最终被解析为真(TRUE)或假(FALSE)的表达式; 表达式(expr)是一条数值或字符串的求值语句;q 序列(seq)是一个数值或字符串序... 阅读全文
posted @ 2015-04-15 17:57 机器学习算法与Python 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 5.2.1数学函数函数描述abs(x)绝对值sqrt(x)平方根ceiling(x)不小于x的最小整数floor(x)不大于x的最大整数trunc(x)向0的方向截取的X中的整数部分round(x,digits=n)将x舍入为指定位的小数signif(x, digits=n)将x舍入为指定的有效数字... 阅读全文
posted @ 2015-04-15 17:55 机器学习算法与Python 阅读(465) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26