search for: provinces

Displaying 20 results from an estimated 121 matches for "provinces".

Did you mean: province
2008 Aug 27
3
Calculating total observations based on combinations of variable values
Hello: As someone making the move from STATA to R, I'm finding it difficult at times to perform basic tasks in R, so forgive me if I've missed an obvious and easily obtained solution to my problem. I've searched the help guides and the archives and have not been able to find a solution that works. I have a data frame with thousands of observations that looks something like this:
2012 Jan 13
1
Change state names to abbreviations in an irregular list of names, abbreviations, null values, and foreign provinces
...'ve been trying to create a vector (state2) that gives all state names as 2-letter abbreviations, using advice given on the thread: http://tolstoy.newcastle.edu.au/R/help/05/09/12136.html However, the code provided there does not work when the original list includes null values and foreign provinces, like "Cusco." I've used an if statement to filter out null values, but names not on the list state.names still cause me to get the error "Error in if (grep(tener$State.Province[i], state.name) > 0) { : argument is of length zero" because grep(tener$State.Province[i...
2005 Sep 09
2
shapefiles manipulations ??
cheers , I need help in shapefile manipulations. I have two shapefiles of my country Cameroon. The first contain 10 provinces and each province contains a certain number of administratives units. I dont have ESRI Arc view. I want to add a admistrative unit of the center province to the map with 10 province. Is it possible to to take a peace of shapefile and combining it to another ? Thanks ! ----------------------...
2006 Sep 12
1
samba/PAM/winbind/ssh
I have the winbind login working on FC5 but now logins to local accounts cannot authenticate. My config files are here: http://www.pigeonnier.org/nsswitch.conf http://www.pigeonnier.org/pam.d/ http://www.pigeonnier.org/krb.conf Again, if I try to ssh in as a user that exists only as a local account on the remote host, I am rejected. User msh is -not- a AD account and only exists on the FC5
2010 Jan 21
2
(no subject)
Hi is there a way in R to create a new column vector with the numbers of 2 others columns simply appended? Example : I have a column with provinces codes (1 to 19) I have a second column with districts codes (1 to ##, depending on the province) I want to create a third column with a code that would be unique for each district: Province  District   District_Unique 1             1            11 1             2            12 13           2      ...
2012 Jan 25
1
Coloring Canada provinces (package maps?)
Dear R'ers, I am wondering what is the smallest geographicterritorial unit available for formatting in Canada. Provinces? I know that in the US it is the county so that I can color US counties any way I want, for example: ### Example for coloring US counties ### Creating an ARTIFICIAL criterion for coloring US counties: library(maps) allcounties<-data.frame(county=map('county', plot=FALSE)$names) allcou...
2008 Sep 05
2
upgraded maps database for italy?
Dear UseRs, I'm using the library maps. I'm drawing maps of Italy. The map available for this library were prepared around *1989*: "This italy database comes from the NUTS III (Tertiary Administrative Units of the European Community) database of the United Nations Environment Programme (UNEP) GRID-Geneva data sets. These were prepared around *1989*" [cited:
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields There is also a full_address method that returns an address that is in a format that the google maps api will be able to return a long-lat coords. Within the full_address method there is a call to obtain the province/state and country name. --------- def full_address ... full_address = [city, self.province.name,
2008 Apr 29
1
generic question ==>> mapping Longhurst biogeochemical ocean provinces in R
*Hello all ** I am a newbie to R plotting maps. I am trying to plot over a world map a layer of Biogeochemical provinces (BGCP) by A.R. Longhurst. Each ocean region unfortunately are quite irregular in shape (not perfect squares). In GIS this layer of ocean provinces would be a layer of polygons, which I am assuming it cannot be plotted with R. I was wondering If anybody has encounter this problem before, to plot a...
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi, How are you? I have a quick question.... I have code that works perfectly with R desktop, but does not work with RWeb. Could you please tell me how to modify the code below so it will work with RWeb? #Read in txt file happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1) #Subset the txt file to only include certain values test<-subset(happyguys, GRADE == 7
2006 Jul 27
1
Routes not working when submitting a form
Hi, I have the following code, a very basic textfield with a submit button: <%= form_tag({:controller => "job", :action => "index"}, :method => ''get'') %> <%= text_field_tag ''province'', @province %> <%= submit_tag "search" %> <%= end_form_tag %> In my routes.rb file I have: map.connect
2011 Apr 14
0
Automatic splitting/combining nested categorical variable in glm
I have a categorical variable with a nested structure. For example, region: a country is split into parts, which in turn contain provinces, which contain municipalities: Part -> Province -> Municipality North Province A Municipality 1 Municipality 2 Municipality 3 ... Province B Municipality 1 ... ... West Province A ... Province B ... ... ... Wh...
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
I am having trouble getting data labels to display over the provinces in a GADM map of Canada. Specifically, I need the variable "Number" from the data set "by_province", grouped by "region", to appear on the corresponding regions of the map. The data set "by_province" looks like this: long lat order hole piece...
2012 Jan 27
1
Overimposing one map in ssplot onto another
Hello! I have 2 maps - both created in ssplot and both identical in terms of outline. Is there any way to superimpose Map1 (which has black borders between Canadian provinces) onto Map2 (which is also a map of Canada)? Thanks a lot for your hints! Dimitri ### A. Reading in Canada data at the province and then at the county level: library(raster) getData('ISO3') # Canada's code is "CAN" can1<-getData('GADM', country="CAN", lev...
2010 Feb 25
6
Subset Question
...ose data set has about 15000 households (the rows/observations) and 130 variables (the columns). I've managed to import the set into R as a data.frame called eu08. Now, I'm trying to look at all of the variables, but limited to one province in the "region" variable. I think the provinces are factors, and the province of interest is labeled '3'. I've tried the following: region3=subset(eu08, region==3) --this simply strips all of the rows from the columns, and I know that about 4000 of the observations are specific to region 3. So does putting the 3 as '3' and...
2012 Jul 13
0
How to simulate the relationship of vegetation and groundwater in Minqin Oasis, Gansu Province, China
*Dear **Madam**/**Sir,* *What would happen if we irrigate the degraded land using the desalinated saline water in Minqin Oasis, Gansu Province, China? Can we prevent the disappearing of Minqin Qasis?* * * *Background:* *1. **The Minqin Oasis is surrounded by two deserts, Badain Jaran Desert and Tengger Desert. * *2. **Water is the root of ecological
2006 Feb 27
2
list of countries, states, cp, etc.
I''m doing a registration form. I saw many registrations forms which asks you for a country and it lists all the countries of the world, and when you select a country the form is actualized with all the states or provinces, and when you select a state/province then the form is actualized with all the cities. I''m looking to do something like that, is there a free service or pay services that offers such a list (perhaps by tables or by web services) that I can look for? Thank you -------------- next part...
2004 Feb 16
2
Data for use in maps()
Dear all, I am interested in plotting maps visualizing spatial statistics in an aggregated fashion, according to administrative boundaries. More specifically, I have fitted a cross-section model on data regarding Italian "counties" (province, for Italian readers) and I would like to visualize residual behavior on a map, in order to have a first assessment of their spatial
2002 May 13
1
Spatio-temporal analysis of homicide rates
Dear R-listers, I would like to carry out a very basic descriptive analysis of homicides rates in Italy, taking into account both the spatial dimension (103 provinces) and the temporal dimension (10 years), but no covariates. In practice, what I would like to do is to describe spatio-temporal variation of homicide rates, identifying those combinations of province-year where the homicide rate is either over- or underrepresented based on Poisson expectation. I...
2006 Aug 16
1
how to update a collection_select from another
I have two collection_select in my list.rhtml: <%= collection_select (:region, :id, @regionall, :id, :title,html_options={:onChange => "new Ajax.Updater(''related_provinces'',''/categories/related_provinces/" + "?id=''+this[this.selectedIndex].value, {asynchronous:true, evalScripts:true});"}) %><br> <%= render :partial => "related_provinces" %> This is my partial: _related_provinces.rhtml: <%=...