Skip to content

Commit

Permalink
markdown syntax improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 12, 2023
1 parent e811620 commit dc3b992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/en/2017-11-02-matrix-indexing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: x[matrix(ncol = 2)]
title: '`x[matrix(ncol = 2)]`'
subtitle: Do I really know base R?!
date: '2017-11-02'
slug: matrix-indexing
Expand All @@ -22,7 +22,7 @@ That was both ugly and inefficient. After someone asked me this question again a
diag(x[i[, 1], i[, 2]])
```

The perfect answer is `x[i]`, both elegant and efficient. I learned this from another person's answer to the same question. Then I looked at the help page ``?`[```, and realized it was well-documented:
The perfect answer is `x[i]`, both elegant and efficient. I learned this from another person's answer to the same question. Then I looked at the help page `` ?`[` ``, and realized it was well-documented:

> When indexing arrays by `[` a single argument `i` can be a matrix with as many columns as there are dimensions of `x`; the result is then a vector with elements corresponding to the sets of indices in each row of `i`.
Expand Down
2 changes: 1 addition & 1 deletion content/en/2018-07-27-source-bioclite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: On source("https://bioconductor.org/biocLite.R")
title: On `source("https://bioconductor.org/biocLite.R")`
date: '2018-07-27'
slug: source-bioclite
---
Expand Down

0 comments on commit dc3b992

Please sign in to comment.