[R-sig-eco] Request for help

Bede-Fazekas Ákos bfalevlist at gmail.com
Wed Feb 24 16:13:58 CET 2016


Dear Philipova,
I think, R Special Interest Group on using Geographical data and Mapping 
(r-sig-geo at r-project.org) is the place where you might get the best 
answers for your question.
In case your data is in a table format (xlsx, csv etc.) with two columns 
of the coordinates, you can easily load it to the R workspace by 
read.table(), read.csv() or xlsx::read.xlsx(), and your data is now 
similar to meuse.grid.
In case your data is stored as a spatial file, eg. ESRI shapefile or 
raster file, you might want to use packages rgdal, sp and raster. 
Classes of sp package called SpatialPointsDataFrame and 
SpatialGridDataFrame can be converted to such a data.frame you need for 
gstat::krige().
HTH,
Ákos Bede-Fazekas
Hungarian Academy of Sciences


2016.02.24. 12:03 keltezéssel, Marcelino de la Cruz írta:
> Hi Philipova,
>
> meuse.grid is just a data.frame with the coordinates x and y of the 
> points where you want to interpolate your variables.
>
> You can easily create one grid for your data with expand.grid. For 
> example:
>
> my.grid<- expand.grid( x= seq(minx, maxx, by=mystepx), y = seq(miny, 
> maxy, by=mystepy))
>
>
> where "minx", "maxx", "miny" and "maxy" are the minimum and maximum 
> values for the coordinates  (i.e. the range) of your study area, and 
> "mystepx" and "mystepy" are the distance among neighbour points in the 
> x and y axis in the grid.
>
> Hope this helps,
>
>
> Marcelino
>
>
> El 24/02/2016 a las 11:21, Philipova escribió:
>>
>> Dear Mr/Madam
>> I am interested in Spatial Point Data Analysis. I read spatstat and 
>> gstat for this purpose.
>> I am reading gstat user' manual and workshop on Spatial Statistic 
>> (Baddeley, 2008) and some scientific publications on gstat.
>> There are two different approaches of performing interpolation ( 
>> inverse distance interpolation, ordinary kriging etc. )  The one is 
>> using mask file and the other is using grid variable. I have a 
>> problem with creating grid variable. Many authors use meuse data as 
>> an example for geostatistics in gstat. No one describes how to create 
>> grid variable  for our data which to replace meuse.grid variable.
>> I hope you could help me with these problems.
>> Thank you so much in advance!
>> Kind Regards
>> Nina Philipova
>>
>> ---
>> ���� ����� � �������� �� ������ �� Avast.
>> https://www.avast.com/antivirus
>>
>>     [[alternative HTML version deleted]]
>>
>>
>>
>> _______________________________________________
>> R-sig-ecology mailing list
>> R-sig-ecology at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology



More information about the R-sig-ecology mailing list