ANSWERS: 1
  • I don't know what "R" programming is. But, based on the commands, and applying general computational ideas (looks like S Code to me), the first filters through by comparing "dest" to individual strings one at a time, and the second looks for "dest" by comparing it with the elements of a 1d matrix. The first method isn't as good if you are iterating or repeating the procedure a lot, because it used a tiny bit more time for the processor to keep pushing things through a narrow bottleneck in the memory. The second method opens up that bottleneck, but uses more memory in the process.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy