Skip to content

Commit

Permalink
Update site close #31 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Aug 18, 2021
1 parent 0a77be4 commit 94c6804
Show file tree
Hide file tree
Showing 602 changed files with 13,979 additions and 2,681 deletions.
2 changes: 1 addition & 1 deletion book/01-basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ tb = tibble::tribble(
"installed.packages", "返回一个矩阵,包含所有已安装的包信息",
"available.packages", "返回一个矩阵,包含资源库上所有可用的R包",
"old.packages", "返回一个矩阵,显示所有已安装的包中具有新版本的包",
"new.packages", "返回一个矩阵,包含所有已安装的包信",
"new.packages", "返回一个向量,包含所有CRAN等资源仓库存在但本地未安装的包名",
"download.packages", "下载一系列R包到本地目录",
"install.packages", "从资源库下载安装一系列R包",
"remove.packages", "移除一系列已安装的R包",
Expand Down
2 changes: 1 addition & 1 deletion book/06-manipulation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ df[do.call(order, as.list(df)), ]

反向排序某一列的方法依赖于数据类型:

- 数字:变量名前加一个`-`。例如:`df[order(-df$weight)]`
- 数字:变量名前加一个`-`。例如:`df[order(-df$weight), ]`
- 因子:转换为整数,变量名前加一个`-`。例如:`df[order(-xtfrm(df$size)), ]`
- 字符:没有简单的方法能做到这一点。一种方法是先转换为一个因子,然后如上所述。

Expand Down
2 changes: 1 addition & 1 deletion book/09-graphs-ggplot2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ spf + geom_hline(aes(yintercept=10))
如果你希望不同的线条出现在不同的方面,有两个选项。 一种是创建具有所需线条值的新数据框。 另一种选择(控制更有限)是在 `geom_line()` 中设定 `stat``xintercept`

```{r}
dat_vlines <- data.frame(cond=levels(dat$cond), xval=c(10,11.5))
dat_vlines <- data.frame(cond=c("control", "treatment"), xval=c(10,11.5))
dat_vlines
spf + geom_hline(aes(yintercept=10)) +
geom_vline(aes(xintercept=xval), data=dat_vlines,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 94c6804

Please sign in to comment.