As stated in the help, the purpose of the ccf function is:
Function ccf computes the cross-correlation or cross-covariance of two univariate series
This means it's not a model as you state in your question, it's a computation.
What you should do is use the ccf
function for plotting and choosing a model for prediction such as ARIMA, VAR, etc. Check out the time series task in CRAN for more options regarding time series modelling.
Perhaps your question should be posted in stats.exchange rather than stackoverflow, as it's not a programming question.
This would be an example of the usage of ccf() in case this is useful for you.
df <- data.frame(date = seq(as.Date("1990-01-01"), length = 100, by = "month"),
x = (runif(n = 100, min = 0, max = 1000)),
y = rpois(n = 100, lambda = 50))
cc = with(df, ccf(x, y, type = "correlation"))
plot(cc)