Re: [R-sig-Geo] rsaga multi.local.function

2012-03-07 Thread Chuck Bulmer
Resolved... The following work around accomplishes what I'm trying to do. library(raster) t<-stack("ELEV.asc", "AACN.asc", "CNBL.asc") predict(t, PGMRF, filename = "predicted_output.asc", fun = predict, se.fit = TRUE) The coded material types (C, F, G, L, M) appear as numbers (1,2,3,4,5) in the

Re: [R-sig-Geo] rsaga multi.local.function

2012-03-01 Thread Chuck Bulmer
Thanks for your reply Alex. I am applying randomForest as a classification problem. and the outcome is a parent material class expressed as character (M,F,G,C etc). Here is the code I'm using for rf (reduced to 3 variables): PGMRF<- randomForest(PGM_1 ~ ELEV+AACN+CNBL, data=PGM, importance=TRU

Re: [R-sig-Geo] rsaga multi.local.function

2012-02-27 Thread Alexander Brenning
Hi Chuck, the error message suggests that the function unsuccessfully tries to write a character string into the output file. Are you applying randomforest to a classification problem or a regression problem? If classification, are you predicting probabilities of class membership, or classes

[R-sig-Geo] rsaga multi.local.function

2012-02-26 Thread Chuck
Hi. I am using RSAGA multi.local.function to apply random forest to a series of grids containing 9 topographic derivatives that were calculated in SAGA. (trying to produce a soil parent material map). On one series of grids the calculation works fine, and an output ascii file is produced.