HannaMeyer/CAST

Predict for other class object

Closed this issue · 4 comments

Is it possible to use the predict function with other class object besides terra raster?

CAST does not implement a particular method for predict that is specific for any classes of the CAST package.
The predict function can be used with various types of class objects beyond just Terra raster objects, depending on the context and the libraries you're using.

This is not an issue of CAST.
When you use predict for data frames it's the other way round: model first, new data second.
See ?terra::predict compared to ?stats::predict.
Hope that helps!