cadooley / gridez Goto Github PK
View Code? Open in Web Editor NEWgridEZ algorithm for generating enumeration zones with user-defined target population and geographic size
License: Other
gridEZ algorithm for generating enumeration zones with user-defined target population and geographic size
License: Other
I tested the example for St Kitts an Nevis, but cannot proceed because an error is returned by the function. Because of break at this step I cannot complete the example.
KNAad_raster <- gridEZ_rasterize(KNAad_poly, KNApop_raster, field = field_ID)
The error states that:
"error in evaluating the argument 'x' in selecting a method for function 'is.factor': Not compatible with requested type: [type=character; target=double]"
For x parameter I just used the admin boundary file that was listed (and was downloaded without error - gadm36_KNA_shp/gadm36_KNA_1.shp on //filestore.soton.ac.uk/users/cad1c14/mydocuments/gridEZ) and then transformed using readOGR
I can see indeed that the class of the variable specified (in field argument of gridEZ_rasterize is indeed a character.
Is the problem with the input dataset (the shp file) which has changed since the program was written? Or is there a problem in the function?
As I understand gridEZ_rasterize's purpose is to transpose the field (ie. the administrative area identifiers) from the data showing admin boundaries (originally the shapefile) to the map with the population. Having the field as a character seems appropriate, so I don't see what could be wrong with the files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.