I usually use a rasterLayer object (from raster package) instead of a SpatialGridDataFrame, but you probably just have to bind it to your data : TL_training_2006_id.raw@data$prediction <- pred This will create a band in which you have your predictions. raster package doesn't handle the factors, so you have to use as.integer(), but it is probably the same.
-- View this message in context: http://r.789695.n4.nabble.com/svm-with-GRASS-GIS-tp4388006p4422787.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.