Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

9 results for “from:Ashraf Afana”

Iterate in a Spatial Polygon Dataframe in R?
Ashraf Afana · Oct 11, 2017 · r-help

Hi all, ?I'm trying to iterate in a SpatialPolygonDataFrame thatcontains 110 features. I tried to use the following code? iterate.spdf =function(x){ for (i in 1:nrow(x)){ p = x[i, ]} return(p)} but with no success as...

How to filter a xyz vector file
Ashraf Afana · Oct 11, 2015 · r-sig-geo

Hi friends, I have a xyz vector file from a terrestrial laser scanner that contains a huge amount of points at a high resolution (approximately 15 mm). I need to reduce the amount of point in the file by selecting...

build a SpatialLines object from a list
Ashraf Afana · Sep 25, 2017 · r-help

Hi all,I'm trying to build a SpatialLines object from a list that contains 124 river segments. Each segment in the list contains the x,y coordinates. I'm using the following code to create the SpatialLines object, but...

Assign values of empty matrix to a raster layer in R
Ashraf Afana · Jul 12, 2015 · r-sig-geo

Hi, I'm trying to apply a conditional statement to three raster layers using the following function: Con = function (condition, trueValue, falseValue){ return(condition*trueValue + (!condition)*falseValue) } A priori I've generated an empty matrix (r4) that match the other...

Rasterize function with maximum in R
Ashraf Afana · Nov 15, 2017 · r-help

Hi all, I have some concerns regarding the rasterize option in R and I would like to know if the fun=max in rasterize in R provides similar results to the one achieved by using "Polygon to Raster using maximum...

Rasterize function with maximum in R
Ashraf Afana · Nov 16, 2017 · r-sig-geo

Hi all, I have some concerns regarding the rasterize option in R and I would like to know if the fun=max in rasterize in R provides similar results to the one achieved by using "Polygon to Raster using maximum...

How to filter a xyz vector file
Ashraf Afana · Oct 15, 2015 · r-sig-geo

Dear Robert,?Thanks a lot. This code really works in a nice and simple way.Ashraf, cheers El Martes 13 de octubre de 2015 19:53, Robert J. Hijmans <r.hijmans at gmail.com> escribi?: Ashraf, Here is an approach...

build a SpatialLines object from a list
Ashraf Afana · Sep 26, 2017 · r-help

Hi Eric, Thanks for the help.But this will not solve the problem as it will generate a list and what I need is an object of class sp using SpatialLine function from sp package.So, I need to convert...

Assign values of empty matrix to a raster layer in R
Ashraf Afana · Jul 13, 2015 · r-sig-geo

Thanks John, Sorry for the confusing, but yes r4 is an empty raster and not an empty matrix. Indeed yes, it works with the raster directly without moving the raster layers to a matrix format. My error was not assigning...

Can't find what you're looking for? Try searching with Google .