--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/151cfdad-5955-468e-86fa-df8b3ab0321dn%40googlegroups.com.
Command: library(sp)
resultAfterExcuted: ['sp','stats','graphics','grDevices','utils','datasets','methods','base']
R>Checking rgeos availability: FALSE
Please note that 'maptools' will be retired during 2023,
plan transition at your earliest convenience;
some functionality will be moved to 'sp'.
Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
which has a restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Command: library(maptools)
resultAfterExcuted: ['maptools','sp','stats','graphics','grDevices','utils','datasets','methods','base']
Command: library(lattice)
resultAfterExcuted: ['lattice','maptools','sp','stats','graphics','grDevices','utils','datasets','methods','base']
Command: #library(gstat)
resultAfterExcuted: [NULL ]
Command:
resultAfterExcuted: null
Command: # PARAMETERS
resultAfterExcuted: [NULL ]
Command: n<-length(vectorParam)/3
resultAfterExcuted: [0.3333333333333333]
Command: lighttrap <- data.frame(x=c(1:n), y=c(1:n), density=c(1:n))
resultAfterExcuted: [[1],[1],[1]]
Command:
resultAfterExcuted: null
Command: lighttrap[,3]<-vectorParam[1:n]
resultAfterExcuted:
Command: lighttrap[,1]<-vectorParam[(n+1):(2*n)]
resultAfterExcuted:
Command: lighttrap[,2]<-vectorParam[(2*n+1):(3*n)]
resultAfterExcuted:
Command:
resultAfterExcuted: null
Command: lighttrap
resultAfterExcuted: ['','','']
Command:
resultAfterExcuted: null
Command: # PROCESSING
resultAfterExcuted: [NULL ]
R>Erreur dans .local(obj, ...) : cannot derive coordinates from non-numeric matrix
Dear BenoitYes, I see. If you run my R Code standalone you will get that error cause "vectorParam" is not declared before. So before I read the R script by GAMA, I have assigned "vectorParam" to "densityList" by command "resultAfterExcuted <- R_eval("vectorParam = " + to_R_data(densityList));". And after this step, I can run each line to the for-loop, GAMA show an error like I send you beforeThanksVào lúc 15:06:50 UTC+7 ngày Thứ Năm, 30 tháng 3, 2023, Benoit Gaudou đã viết: