Improved bug-finding guidelines
This commit is contained in:
parent
21493cdad5
commit
db6d436e43
1 changed files with 3 additions and 1 deletions
4
TODO.md
4
TODO.md
|
|
@ -48,4 +48,6 @@ Function | Matlab output | R output
|
||||||
|
|
||||||
# Wanna help debugging?
|
# Wanna help debugging?
|
||||||
|
|
||||||
If you find an error, one of the first things to try is to compare the R code with its MATLAB equivalent, which you can find [here](matlab).
|
If you find an error, one of the first things to try is to compare the R code with its MATLAB equivalent, which you can find [here](matlab). Some common causes are:
|
||||||
|
|
||||||
|
1. Using `()` to subset an object in R. R uses `[]` for that, whereas Matlab uses `()` for both function calling and object subsetting. Therefore, often objects will be mistakenly interpreted as functions by R due to improper translation.
|
||||||
Loading…
Add table
Reference in a new issue