search for: angola

Displaying 17 results from an estimated 17 matches for "angola".

Did you mean: angela
2009 Jan 27
1
Data Frame Manipulation: Time Series
Dear R Helpers: I have a data set where the unit of observation is country-year. I would like to generate a new data set based on some inclusionary (exclusionary) criteria. Here is an example of the type of data that I have. df<-data.frame(cbind("country"=c(rep("Angola", 9), rep("Burundi", 7), rep("Chad", 13)), "year"=c(1975:1983, 1989:1995, 1965:1977)), "war"=c(rep(1,2), rep(0,5), rep(1,2), rep(1,2), rep(0,2), rep(1,3), rep(1,4), rep(0,6), rep(1,3))) > df country year war 1 Angola 1975 1 2 Angola 1976 1...
2019 Sep 04
2
Plot. window error- Usando R base. Gráfico
Lo que obtengo es dim(currcty) = NULL lo que hice es crear una lista de paises countrylist <- unique(length(eco_freedom2$Countries) Los datos son de esta forma head(eco_freedom2, 5) Year ISO_Code Countries SUMMARY.INDEX X1..Size.of.Government 641 2000 AGO Angola NA NA 601 2001 AGO Angola NA NA 561 2002 AGO Angola NA NA 521 2003 AGO Angola NA NA 481 2004 AGO Angola NA NA O...
2019 Sep 04
2
Plot. window error- Usando R base. Gráfico
...ue hice es crear una lista de paises > > > > countrylist <- unique(length(eco_freedom2$Countries) > > > > Los datos son de esta forma > > head(eco_freedom2, 5) > > Year ISO_Code Countries SUMMARY.INDEX X1..Size.of.Government > > 641 2000 AGO Angola NA NA > > 601 2001 AGO Angola NA NA > > 561 2002 AGO Angola NA NA > > 521 2003 AGO Angola NA NA > > 481 2004 AGO Angola...
2013 Apr 22
2
subset dataframe
...;C:/Users/HTPC/Documents/_Documents/Research/WithDidia/AGOAUSImports.txt", header = T, sep = "\t", dec = ".", na.strings = "NA", stringsAsFactors = T)# > str(agoa); names(agoa) 'data.frame':109 obs. of  19 variables:  $ X    : Factor w/ 39 levels "Angola ","Benin ",..: 1 1 1 2 2 3 3 3 4 4 ...  $ X.1  : Factor w/ 3 levels "AGOA ","GSP ",..: 3 1 2 3 2 3 1 2 3 1 ...  $ X1996: int  2687143 0 2 18084 70 23356 0 3624 3835 0 ...  $ X1997: int  2427824 0 356492 4303 3437 18758 0 5882 930 0 ...  $ X1998: int  1205545 0 104...
2011 Aug 04
1
Running a column loop through the Moran.I function.
...e first column. I'm trying to run a spatial autocorrelation for each column or attribute in the "attri" dataframe. The process for running this on a single column is as follows: example of "coord.csv" dataframe: country, lat, long Albania, 41.00, 20.00 Algeria, 28.00, 3.00 Angola, -12.30, 18.30 example of "countryattri.csv" dataframe: country, GDP, Population Albania, 100000, 20000 Algeria, 1200000, 300000 Angola, 1300000, 300000 > Locate<-read.csv("coord.csv", header = TRUE, sep = ",") > Locate.dists<-as.matrix(dist(cbin...
2009 Mar 18
1
lm function (PR#13608)
...773 141 SYRIA .51 .724 142 SIERRALEONE .5 .336 143 AZERBAIJAN .49 .746 144 CENTRALAFRICANREPUBLIC .49 .384 145 MACEDONIA .49 .801 146 TOGO .49 .512 147 ZAMBIA .49 .434 148 ANGOLA .48 .446 149 DJIBOUTI .48 .516 150 EGYPT .48 .708 151 BURKINAFASO .47 .37 152 ETHIOPIA .47 .406 153 LATVIA .47 .855 154 LITHUANIA .47 .862 155 UGANDA .47 .505 156...
2013 May 11
1
(no subject)
...uct a chloropleth. I want to use the fixedBreaks argument to specify given breaks. My data look like this: > head(Maji) Country waterused CC 1 Afghanistan 36 AFG 2 Albania 4 ALB 3 Algeria 52 DZA 4 Angola 0 AGO 5 Antigua 10 ATG 6 Argentina 4 ARG and when I attempt, > classInt <- classIntervals(ww[["waterused"]], n=5, style="fixed", fixedBreaks=c(0, 25,50,75,100,4565)) *Warning message:* *In classIntervals(ww[[&quo...
2009 Jan 13
1
Drawing Polygons with xyplot in lattice
...using polygon after having first drawn the line plot), but am having difficulty replicating it with xyplot. Here is some sample code (with 4 countries and 10 years), which is as far as I've been able to get: library(lattice) df<-data.frame(c(u5cmr=round(runif(40)*100)),country=c(rep("Angola",10), rep("Benin",10), rep("Botswana",10), rep("Burkina Faso",10)), year=rep(1991:2000,4)) names(df)<-c("u5cmr", "country", "year") xyplot(u5cmr ~ year | country , ylab = "U5 cmr (per thousand)", data = df, type = "l...
2019 Sep 04
3
Plot. window error- Usando R base. Gráfico
Carlos Al especificar los limites, no me sale ningun error, aunque no consigue graficar, nada, # Look at the time series for each country for the time period, for instance GDPPC for (i in 1:length(countrylist)){ currcty <- countrylist[i] filename <- paste("index",currcty,".png",sep="") png(filename,width=800,height=600)
2019 Mar 06
2
Crear una variable tipo factor a partir de un vector de caracteres
...e del país. Queremos dividir los países, que son países africanos de acuerdo a 5 regiones: norte de africa, africa del este, sur africa, etc Yo lo que he hecho ha sido crear vectores con el nombre de cada uno de los países en cada uno de ellos, por ejemplo este de Africa Central, ca <- c("Angola", "Cameroon", "Cabo Verde", "Central African Republic", "Chad","Equatorial Guinea", "Eritrea", "Ethiopia", "Gabon", "Sao Tome and Principe") class(ca) character luego hice un ifelse para crear un...
2019 Feb 19
2
Cambiar el formato de datos
...) escribió: > Carlos, para poner despues del gather, las observaciones e Afganistan para > todos los años consecutivos, alguna pista? > > Afghanistan year60 8996351 > 2 Albania year60 1608800 > 3 Algeria year60 11124888 > 4 Andorra year60 13411 > 5 Angola year60 5643182 > 6 Afghanistan year61 9166764 > 7 Albania year61 1659800 > > On Tue, 19 Feb 2019 at 13:31, Antonio Rodriguez Andres < > antoniorodriguezandres70 en gmail.com> wrote: > >> > gather(pobla, key = year, value = totpop, year60:year63) >> &g...
2006 Jul 18
2
how can I delete rows?
...ries or how can I select the countries of Lat. Am. thank you this is the list of countries SHCODE COUNTRY NAME WBCTRY (1) (2) _________________________________________________________________ 1 Algeria DZA + + 2 Angola AGO - - 3 Benin BEN - + 4 Botswana BWA + + 5 Burkina Faso HVO - - 6 Burundi BDI + - 7 C...
2019 Mar 06
3
Crear una variable tipo factor a partir de un vector de caracteres
...ses africanos de acuerdo a 5 regiones: norte de >> africa, africa del este, sur africa, etc >> >> Yo lo que he hecho ha sido crear vectores con el nombre de cada uno de los >> países en cada uno de ellos, por ejemplo este de Africa Central, >> >> ca <- c("Angola", "Cameroon", "Cabo Verde", "Central African Republic", >> "Chad","Equatorial Guinea", "Eritrea", "Ethiopia", >> "Gabon", "Sao Tome and Principe") >> class(ca) >> character...
2019 Feb 19
2
Cambiar el formato de datos
> gather(pobla, key = year, value = totpop, year60:year63) Country year totpop 1 Afghanistan year60 8996351 2 Albania year60 1608800 3 Algeria year60 11124888 4 Andorra year60 13411 Gracias Carlos Antonio On Tue, 19 Feb 2019 at 12:54, Carlos Ortega <cof en qualityexcellence.es> wrote: > Sí, tienes varias formas. > > Mira la función
2019 Mar 06
2
Crear una variable tipo factor a partir de un vector de caracteres
...africa, africa del este, sur africa, etc >>>> >>>> Yo lo que he hecho ha sido crear vectores con el nombre de cada uno de >>>> los >>>> países en cada uno de ellos, por ejemplo este de Africa Central, >>>> >>>> ca <- c("Angola", "Cameroon", "Cabo Verde", "Central African Republic", >>>> "Chad","Equatorial Guinea", "Eritrea", "Ethiopia", >>>> "Gabon", "Sao Tome and Principe") >>>> clas...
2018 May 13
0
Dataverse (reading files with .tab and .7z suffixes)
Ilio Fornasero writes: > Yet, I am at this point. > > > > > ## 01. Finding the dataverse server and making a search > Sys.setenv("DATAVERSE_SERVER" =3D "dataverse.harvard.edu") > dataverse_search(".Hunger") > > > ## 02. Loading the dataset (in this example, I have chosen the word ".Hunge= > r" to get > # one list and
2001 Sep 14
5
Our Sympathies
The following is a message to be sent to the President of the United States of America. Although we may not be able to do a great deal from where we are, but for the people of America just knowing we care and feel their sadness will help. Please put your name on the following list and send it to all you know and who care. If you are the 100th name and every 100th there on could you please also