[R-sig-Geo] extract only some polygons from shp-file
Alexander Werner
werner at wirtschaft.uni-kassel.de
Fri Aug 13 17:08:24 CEST 2010
Dear Stijn,
you may try something like
Map_City=Map_Complete[Map_Complete$City_variable==CityValue,]
Alexander
Stijn Ruiter schrieb:
> Dear all,
> I am new to spatial data handling/modeling in R. Could you please help me with the following?
> I have a shp-file of class 'SpatialPolygonsDataFrame', so it contains additional variables. I would like to select only those spatial objects that have a certain score on one of these additional variables. To be more precise, I have polygons of neighborhoods. These neighborhoods belong to different cities (which is recorded in one of the additional variables). I'd like to select only those polygons belonging to a single city and keep all additional variables for those polygons.
> Thanks in advance,
> Stijn
>
> --
>
> Stijn Ruiter
> Senior Researcher
> Netherlands Institute for the Study of Crime and Law Enforcement NSCR
>
> Postal address:
> PO Box 71304
> 1008 BH AMSTERDAM
>
> Visiting address:
> De Boelelaan 1105
> Room 2D38
> 1081 HV AMSTERDAM
>
> Office phone: +31 (0) 20 5985427
> Phone secretary: +31 (0) 20 5985239
> Fax secretary: +31 (0)20 5983975
>
> Web site: stijnruiter.nl<http://www.stijnruiter.nl/>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
--
Dipl.-Ök. Alexander Werner
_______________________________________________
Universität Kassel
Fachbereich Wirtschaftswissenschaften
Fachgebiet Empirische Wirtschaftsforschung
Nora-Platiel-Str. 4
34109 Kassel
Tel.: 0561 / 804 - 3044
werner at wirtschaft.uni-kassel.de
http://cms.uni-kassel.de/unicms/index.php?id=fb7_ivwl_eckey
More information about the R-sig-Geo
mailing list