Skip to content

Commit f2a2b22

Browse files
committed
Make minor formatting change to a manual table.
1 parent 29aab45 commit f2a2b22

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

UserManual/src/tables/coreRtableLong.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ Table: (#tab:coreR) Basic R manipulation functions in NIMBLE. For some of these
66
`rep()` No `rep.int` or `rep_len` arguments.
77
`seq()` and ':' Negative integer sequences from ‘:’, e.g. , `2:1` do not work.
88
`which()` No `arr.ind` or `useNames` arguments.
9-
`diag()` Works like R in three ways: `diag(vector)` returns a matrix with `vector` on the diagonal;
9+
`diag()` Works like R in three ways:
10+
`diag(vector)` returns a matrix with `vector` on the diagonal;
1011
`diag(matrix)` returns the diagonal vector of `matrix`;
1112
`diag(n)` returns an $n \times n$ identity matrix. No `nrow` or `ncol` arguments.
1213
`diag()<-` Works for assigning the diagonal vector of a matrix.
1314
`dim()` Works on a vector as well as higher-dimensional arguments.
1415
`length()`
15-
`is.na()` Does not correctly handle NAs (or NaNs) from R that are type `'logical'` or `'integer'`,
16+
`is.na()` Does not correctly handle NAs (or NaNs) from R that are type `'logical'` or `'integer'`,
1617
so convert these using `as.numeric()` before passing from R to NIMBLE.
1718
`is.nan()`
1819
`any()` One argument only; NAs treated as FALSE.
@@ -23,7 +24,7 @@ Table: (#tab:coreR) Basic R manipulation functions in NIMBLE. For some of these
2324
`matrix()` Allows additional arguments to control initialization.
2425
`array()` Allows additional arguments to control initialization.
2526
indexing Arbitrary integer and logical indexing is supported for objects of one or two dimensions.
26-
For higher-dimensional objects, only `:` indexing works and then only to create an object
27-
of at most two dimensions.
27+
For higher-dimensional objects, only `:` indexing works, and
28+
then only to create an object of at most two dimensions.
2829

2930

0 commit comments

Comments
 (0)