The current implementation of the prevalence function utilizes base R functionalities for data manipulation and processing.
While this works fine for small datasets, it becomes significantly slower when handling larger, more complex datasets.
To improve the function's performance, it should be rewritten using the magnificent data.table package which offers fast and memory-efficient methods for data manipulation.
The current implementation of the
prevalence
function utilizes base R functionalities for data manipulation and processing. While this works fine for small datasets, it becomes significantly slower when handling larger, more complex datasets. To improve the function's performance, it should be rewritten using the magnificentdata.table
package which offers fast and memory-efficient methods for data manipulation.Related with #26