search for: x2003

Displaying 5 results from an estimated 5 matches for "x2003".

Did you mean: 2003
2011 Feb 18
2
xyplot formula
df=data.frame(country=c("A","A","A","B","B","B"), food=rep(c("Apples","Pears","Bananas"),2), X2000=c(4,5,6,7,6,8), X2001=c(4,5,6,7,6,8), X2002=c(4,5,6,7,6,8), X2003=c(4,5,6,7,6,8)); I have data in the above form trying to get a plot of each fruit over time year conditioned on country and food. I tried, xyplot(X2000+X2001+X2002+X2003~2000:2003|country*food,df) But think I need to transform the data, just not sure how. Any help gratefully received. Cheers,...
2013 Apr 22
2
subset dataframe
...6 1335 2269 14010 0 5660 503 0 ...  $ X1999: int  1596052 0 828761 6042 11788 12071 0 4824 2695 0 ...  $ X2000: int  2178246 0 1378777 1026 1414 38024 0 2922 502 0 ...  $ X2001: int  464083 0 2635482 1108 178 19429 0 1221 4919 0 ...  $ X2002: int  386118 0 2728387 680 0 25014 3707 871 2862 0 ...  $ X2003: int  441647 0 3822701 602 0 7293 6343 0 788 0 ...  $ X2004: int  471009 1349411 2700750 1310 215 52840 20119 7 474 0 ...  $ X2005: int  1081143 3662774 3740324 509 4 148102 30044 7 1962 0 ...  $ X2006: int  1670746 4127605 5920870 531 24 224382 27688 27 954 6 ...  $ X2007: int  2346392 3898345 626...
2009 Jun 12
2
Sweave recode(car) and Lyx, compiling but not executing on Mac
I am just beginning to use Sweave with Lyx on a Mac (R2.8.1). I have 12 chunks of Sweave code that work fine, but this piece: <<>>= library(car) cabbages$Year<-recode(cabbages$Year,"'X2001'='2001';'X2002'='2002';'X2003'='2003';'X2004'='2004';'X2005'='2005';'X2006'='2006';'X2007'='2007';'X2008'='2008';'X2009'='2009';'X2010'='2010';'X2011'='2011';'X2012'='2012'&...
2016 Jun 24
3
Ayuda ggplot2
...ue hace gráficos de muy buena calidad...tengo los datos de varios años para diferentes grupos de empresas y los pretendo graficar tanto en un solo grafico como en varios (facet_wrap) pero tengo problemas con el eje de las X, ya que necesito que aparezcan los años es decir, 2003, 2004 y así ....y no X2003, X2004 que es como están apareciendo. Este es mi código: library(reshape2) library(ggplot2) emp <- read.csv("C:/Users/usuario/Documents/tamano_empresas.csv", header=TRUE, sep=";", comment.char="" , strip.white=FALSE, dec = ",") melted = melt(emp, id.va...
2010 Nov 17
3
stacking consecutive columns
I have a file, each column of which is a separate year, and each row of each column is mean precipitation for that month. Looks like this (except it goes back to 1964). month X2000 X2001 X2002 X2003 X2004 X2005 X2006 X2007 X2008 X2009 1 1.600 1.010 4.320 2.110 0.925 3.275 3.460 0.675 1.315 2.920 2 2.960 3.905 3.230 2.380 2.720 1.880 2.430 1.380 2.480 2.380 3 1.240 1.815 1.755 1.785 1.250 3.940 10.025 0.420 2.845 2.460 4 3...