I found the reason of my problem > R >rast.put(G, "test", test, "Test",cat=FALSE) > Error in rast.put(G, "test", test, "Test", cat = FALSE) : > layer is neither numeric nor factor R >rast.put(G, "test", test$dem, "Test",cat=FALSE) works better. thanks LB