[STATSGRASS] sites.put2 ERROR!!!
Massimiliano Cannata
massimiliano.cannata at supsi.ch
Wed Oct 22 09:33:52 EDT 2003
Hi users,
I'm new of this list and I will appreciate any
help.
Here it is what I've done:
>library(GRASS);
>G<-gmeta();
>mod<-lm(.....................)
>dataSite<-data.frame(x=matrix(1:11),y=matrix(1:11),z=as.vector(mod$coefficient));
>sites.put2(G,data=dataSite,id=NULL,dims=c("x","y","z"),lname="parametri",all.sites=TRUE,check=FALSE)
Error in
which(unlist(lapply(data.attr,is.numeric))):
argument to "which" is not logical
>
But if I type:
>lapply(unlist(dataS,is.numeric))
x y z
TRUE TRUE TRUE
So, what I'm doing wrong?
Of course I can use sites.put() but just for
knowledge.......
Thanks you all.
--
-------------
note: change my e-mail reference to
massimiliano.cannata at supsi.ch
because the old one will be deleted soon.
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata at supsi.ch
Internet: http://www.ist.supsi.ch
More information about the grass-stats
mailing list