summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/r-cn.html.markdown
diff options
context:
space:
mode:
authorSuzane Sant Ana <tetestonaldo@gmail.com>2017-12-31 14:27:06 -0200
committerGitHub <noreply@github.com>2017-12-31 14:27:06 -0200
commit42f9329bb3a028d374d6397991ac48b44064741e (patch)
tree1e75e2b3e122aeb863e3ffa037f6f64c4027fbf8 /zh-cn/r-cn.html.markdown
parente6b77595f2669d66ac7be43c6e6083cbff80a9a7 (diff)
parent70a36c9bd970b928adde06afb2bd69f6ba8e5d5c (diff)
Merge pull request #1 from adambard/master
update
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)
}