From db6d436e43e9203339c7f9008a28f644168bb089 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Mon, 19 Oct 2020 16:16:00 +0200 Subject: [PATCH] Improved bug-finding guidelines --- TODO.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index ee48a36..355af13 100644 --- a/TODO.md +++ b/TODO.md @@ -48,4 +48,6 @@ Function | Matlab output | R output # 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). \ No newline at end of file +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. \ No newline at end of file