Re: [R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Enzo Cocca
m v with NAs. > e.g. to reproduce the error message > > > v <- as.numeric(NA) > > if (is.numeric(v) && any(v < 0)) cat("hello world\n") > > see also > > https://stackoverflow.com/questions/7355187/error-in-if-while-condition-missing-valu

[R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Enzo Cocca
hortestpath (spagna and libano are two SpatialPointsDataFrame) where I wrong? Thanks in advance E -- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage" ISMEO International Association of Mediterranean and Oriental Studies mail: enzo@gmail.com cell: +

[R] graphics or table

2013-11-11 Thread Enzo Cocca
y? thanks enzo -- Enzo Cocca (PhD Candidate) Research Fellow Università di Napoli "L'Orientale" mail: enzo@gmail.com cell: +393495087014 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://sta

Re: [R] ascii-grid export

2013-11-03 Thread Enzo Cocca
gt; ASCII Grid file for reading into a GIS? > > If so, you can probably do it with writeGDAL from the rgdal package, > or writeRaster from the raster package. > > I don't really know what a 'semivariogram map' is. > > > On Sat, Nov 2, 2013 at 8:55 AM, Enzo Cocc

[R] ascii-grid export

2013-11-02 Thread Enzo Cocca
hi, I want to export in ascii-grid file a semivariogram map that I have did with gstat library. How can I make it? Somebody can help me? thanks! enzo -- Enzo Cocca (PhD Candidate) Research Fellow Università di Napoli "L'Orientale" mail: enzo@gmail.com cell

[R] function gstat r with pyhton

2013-05-02 Thread Enzo Cocca
VGM_PARAM_A3, model=vgm(1, "Sph", 5, 0), fill.all=TRUE) ESV_A3 <- variogram(VGM_PARAM_A3, cutoff=9) VARMODEL_A3 = fit.lmc(ESV_A3, VGM_PARAM_A3) plot(ESV_A3, model = VARMODEL_A3, pch=20, cex=0.7, col="red", main="Linear Model of Coregionalization for A3 va

Re: [R] rpy2 postgres qgis problem

2013-05-01 Thread Enzo Cocca
ot;127.0.0.1", dbname="pyarchinit", port="5432", password="enzo", user="postgres")') r('archezoology_table<-dbReadTable(con,"archeozoology_table")') r('png("/home/enzo/Scrivania/prova.png");hist(archezoology_t

[R] rpy2 postgres qgis problem

2013-05-01 Thread Enzo Cocca
_A3, VGM_PARAM_A3)') plot(zoo('ESV_A3, model = VARMODEL_A3,xlab=,ylab=,pch=20, cex=0.7, col="red",main="Linear Model of Coregionalization for A3 variables"')) The error is the following: res = super(RFunction, self).__call__(*new_args, **new_kwargs)