The common way to report a bug or typo is to click ‘Get Unstuck’ but that button does not appear on this page.
Under the R matrices section it says
To access a single element inside a matrix called
ex_matrix
, you can look up the item in ther
th row and thec
th column like so:ex_matrix[r, ]
.To access the entire
r
th row, you can refer to it like so:ex_matrix[r, c]
. To access thec
th column, useex_matrix[ , c]
.
I think it has it backwards - ‘ex_matrix[r, c]’ accesses a single element and ex_matrix[r, ] grabs the entire row.
Which is correct?