[R-sig-Geo] flipVertical [SEC=UNCLASSIFIED]

Roger Bivand Roger.Bivand at nhh.no
Fri Oct 5 04:09:18 CEST 2012


On Fri, 5 Oct 2012, Hafi, Ahmed wrote:

> Hi ,
>
>
>
> I am trying to flip a SpatialPointDataFrame vertically. The SP help on
> flipVertical says that you can flip a SpatialPointDataFrame or
> SpatialGridDataFrame. But when I tried using a SpatialPointDataFrame as
> the argument, R comes up with an error message saying that it has to be
> a SpatialGridDataFrame. I am trying to overlay a SpatialPolygonDataFrame
> on SpatialPointDataFrame and counts the number of points falling into
> each polygon. Before I do that I need to flip the points data frame
> vertically. I would appreciate very much if you could help me out by
> telling me what I am doing wrong or is there a better a way of getting
> the overlay job done, given that I need to flip the points data frame.
>

?elide in maptools, possibly passing through the bounding box of the grid. 
To follow up, include a self-contained example (say using meuse and 
meuse.grid).

Roger

>
>
> Thanks
>
>
>
> Ahmed Hafi
>
> Australian Bureau of Agricultural and Resource Economics and Sciences
> (ABARES)
>
>
>
>
>
>
>
> ------
> ------
> IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture, Fisheries and Forestry (DAFF). The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from DAFF. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.
>
> If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. DAFF is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.
>
> If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly.
>
> This notice should not be deleted or altered.
>
> ------
>
>
> ------
>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list