[R-sig-Geo] NA data values

Debora Nozza dedethesetter at gmail.com
Fri Jun 24 16:22:06 CEST 2016


Good morning,

I am working on creating a STFDF object using the function meteo2STFDF(). I
am trying to  to reproducing (with my data) the same example provided in
http://www.inside-r.org/node/358574.

However, after computing meteo2STFDF() function, the data at tempc is full of
NA values. It seems that I am doing exactly the same thing of the example
so I am not able to understand where is the problem.

Could someone has a solution?

Best Regards,
Debora


Here my variable:

Object of class STFDF
 with Dimensions (s, t, attr): (2, 8761, 1)
[[Spatial:]]
Object of class SpatialPointsDataFrame
Coordinates:
           min        max
lon 14406.0000 14476.0000
lat    45.6737    45.8771
Is projected: FALSE
proj4string :
[+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0]
Number of points: 2
Data attributes:
      Citta        lat             GT1               GT2
 Bagolino:1   Min.   :10.34   Min.   :5058676   Min.   :1604398
 Bione   :1   1st Qu.:10.37   1st Qu.:5064384   1st Qu.:1606377
              Median :10.39   Median :5070092   Median :1608356
              Mean   :10.39   Mean   :5070092   Mean   :1608356
              3rd Qu.:10.42   3rd Qu.:5075799   3rd Qu.:1610335
              Max.   :10.45   Max.   :5081507   Max.   :1612314
[[Temporal:]]
     Index                       timeIndex
 Min.   :2015-05-24 00:00:00   Min.   :   1
 1st Qu.:2015-08-23 06:00:00   1st Qu.:2191
 Median :2015-11-22 12:00:00   Median :4381
 Mean   :2015-11-22 12:00:00   Mean   :4381
 3rd Qu.:2016-02-21 18:00:00   3rd Qu.:6571
 Max.   :2016-05-23 00:00:00   Max.   :8761
[[Data attributes:]]
     tempc
 Min.   : NA
 1st Qu.: NA
 Median : NA
 Mean   :NaN
 3rd Qu.: NA
 Max.   : NA
 NA's   :17522

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list