The tutorial you need to maximize your use of R's vectors (CC273)

April 11, 2024 • PD Schloss • 1 min read

This tutorial should clear up a lot of misconceptions about R’s vectors and for loops. Pat goes through a variety of approaches for building vectors and getting values out of vectors. He uses the microbenchmark package to evaluate their speed for different sized vectors. Rcpp will also make a cameo. You’ll likely be surprised by the results! This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier.

Code

You can browse the state of the repository at the