Error: could not find function “sample.split”


#1

I am facing a strange problem on my mac. I have imported caTools library and checked for its presence too. But when i check whether sample.split is defined, it shows “False”. Any possible solution for this?


#2

Hi @aaronstone, have you tried re-installing the package “caTools”?
And if that doesnt work either, you could also try installing the dev version from GitHub by the following command after installing “devtools” package.

devtools::install_github(“cran/caTools”)

Let us all know what worked :slight_smile: