summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/r-cn.html.markdown
diff options
context:
space:
mode:
authorhyphz <drmoose94@gmail.com>2017-07-18 17:56:42 +0100
committerhyphz <drmoose94@gmail.com>2017-07-18 17:56:42 +0100
commit5ab5cb9800822d607be2c6ac943377811db98158 (patch)
tree3c804707822744c20da1de54ff60fc8c3197781b /zh-cn/r-cn.html.markdown
parent62102d02992f83b3a1fb745a39f36332dd4435b7 (diff)
parent6e7c5c793327f4a63b13e555894597915ca91fda (diff)
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'zh-cn/r-cn.html.markdown')
-rw-r--r--zh-cn/r-cn.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/zh-cn/r-cn.html.markdown b/zh-cn/r-cn.html.markdown
index 0c46bc22..d576db29 100644
--- a/zh-cn/r-cn.html.markdown
+++ b/zh-cn/r-cn.html.markdown
@@ -285,7 +285,7 @@ while (a > 4) {
}
# 记住,在 R 语言中 for / while 循环都很慢
-# 建议使用 apply()(我们一会介绍)来错做一串数据(比如一列或者一行数据)
+# 建议使用 apply()(我们一会介绍)来操作一串数据(比如一列或者一行数据)
# IF/ELSE
@@ -303,7 +303,7 @@ if (4 > 3) {
# 定义如下
jiggle <- function(x) {
- x + rnorm(x, sd=.1) #add in a bit of (controlled) noise
+ x = x + rnorm(1, sd=.1) # 添加一点(正态)波动
return(x)
}