Displaying 20 results from an estimated 121 matches for "province".
2008 Aug 27
3
Calculating total observations based on combinations of variable values
...bvious 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:
YEAR MONTH DAY COUNTRY REGION PROVINCE CITY
1994 1 22 Sri Lanka South Asia Northern (Province) Pungudutivu
1994 1 25 Sri Lanka South Asia Central (Province) Kandy
1994 2 26 Sri Lanka South Asia Central (Province) Kandy
1994 2 28 Sri Lanka...
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[...
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
...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 server "province"
>From the /var/log/secure file:
Sep 12 16:58:29 province sshd[11521]: reverse mapping checking getaddrinfo
for zogness.cinteractive.com failed - POSSIBLE BREAK-IN ATTEMPT!
Sep 12 16:58:33 province sshd[11521]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh rus...
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)
allco...
2008 Sep 05
2
upgraded maps database for italy?
...quot;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: help("italy")].
The details of this map is by "province", which is not maybe optimal, but is
OK.
However, after 1989 many new province are born. So for example the new
provincia of Rimini has born and the sardinan Island has doubled them.
Some of you do know how to get upgraded maps of italy? I think it would
useful for all Italian mapers.
The se...
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_addres...
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?
...ork 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 & Y_Q10A < 9)
#print the subset file
print(test)
mydata<-test
#Sort the data by province, and then by Y_Q10A
mydataSorted<-mydata[ order(mydata$PROV,mydata$Y_Q10A), ]
print(mydataSorted)
#Weight the data and aggregate the value by province. There are 2 values
for each province (1 & 2) and the results show the number of people for
each province who responded with value 1 or v...
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 ''job/:province'', :controller => ''job'', :action => ''index''
So now when I submit the form I suspec...
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
...
...
...
W...
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", le...
2010 Feb 25
6
Subset Question
...need.
I'm currently analysing a population survey whose 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 speci...
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 deterioration of Minqin. On the
hand, severe water sca...
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 par...
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 autocorrelation. I would also make some EDA
on the spatial patterns (if any) of the regressors.
I have found the maps package (and related) and would be able to do w...
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....
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:
<%=...