[R] Could not find function even though I have all necessary packages

Michael Artz michaeleartz at gmail.com
Mon Mar 28 18:21:56 CEST 2016


Hi,
  I am getting the error,

Error: could not find function "createDataPartition"

when I do the code
dataFrame_data <- createDataPartition(data$colA, p=.7, list=FALSE)

even though I have run already

install.packages("caret", dependencies = c("Depends", "Imports",
"Suggests"))
and
install.packages("caret")

those worked and I then ran
library(caret)

does anyone know why I'm unable to use this function?

	[[alternative HTML version deleted]]



More information about the R-help mailing list