Home ยป data.table

data.table

Solve DBI returning integer64 in R

  • by
  • 1 min read

Recently I bumped into an issue where a query, ran using the DBI library with the dbGetQuery function returned an integer64. Even without me noticing it. When converting my data frame (or data.table) to a matrix for clustering purposes, I ran into the following error: Error in if (changes ==… 

randomForest gives NA/NaN/Inf in foreign function call and how to solve it

  • by
  • 3 min read

Personally, Random Forest is one of my favorite algorithms for supervised learning. It’s quick and dirty and still allows for some interpretation. However, R and the RandomForest package are somewhat cryptic when it comes to requirements not met to properly train the algorithm. I bumped a lot into this error…