Re: [R] combining data from different datasets

2008-10-26 Thread Dr Eberhard W Lisse
Yes, it does. Thanks. el On 25 Oct 2008, at 03:32 , Steven McKinney wrote: If you are using regular R graphs (i.e. not lattice or other library graphics) try setting the margins with the mar argument to par() e.g. par(mar = c(5, 10, 5, 1)) The four numbers specify the amount of margin room o

Re: [R] combining data from different datasets

2008-10-24 Thread Steven McKinney
1L3 Canada -Original Message- From: [EMAIL PROTECTED] on behalf of Dr Eberhard W Lisse Sent: Fri 10/24/2008 2:44 PM To: R-help Mailing List Cc: Dr Eberhard W Lisse Subject: Re: [R] combining data from different datasets It's Complicated® :-)-O I pull the data from a postgresql

Re: [R] combining data from different datasets

2008-10-24 Thread Dr Eberhard W Lisse
Daniel, the parameter all.x=TRUE is required. greetings, el On 24 Oct 2008, at 21:24 , Daniel Malter wrote: ?merge. It looks though that your "iso" has no identifier variable whereas the "rawdata" has, so you probably cannot merge it unless/until you have an identifier in "iso". ___

Re: [R] combining data from different datasets

2008-10-24 Thread Dr Eberhard W Lisse
It's Complicated® :-)-O I pull the data from a postgresql table, but I am getting there, thank you the help. Another question, I am barplotting the continents horizontally, ie the more participants the lrger the bars are. I have managed the make the labels (names of the nontinents) to be horizon

Re: [R] combining data from different datasets

2008-10-24 Thread Daniel Malter
uftrag von Dr Eberhard W Lisse Gesendet: Friday, October 24, 2008 11:02 AM An: R-help Mailing List Cc: Dr Eberhard W Lisse Betreff: [R] combining data from different datasets Hi, I have two tables: > iso continent code code3 codenum country 1 EU

Re: [R] combining data from different datasets

2008-10-24 Thread Barry Rowlingson
2008/10/24 Gabor Grothendieck <[EMAIL PROTECTED]>: > NA and "NA" are not the same: > >> DF <- data.frame(x = c("a", "NA", NA)) >> DF > x > 1a > 2 NA > 3 >> >> is.na(NA) > [1] TRUE >> is.na("NA") > [1] FALSE Yes, but unless you tell it otherwise, read.table will think Namibia is an NA,

Re: [R] combining data from different datasets

2008-10-24 Thread Gabor Grothendieck
On Fri, Oct 24, 2008 at 11:37 AM, Dr Eberhard W Lisse <[EMAIL PROTECTED]> wrote: > > This looks very cool. > > But I must still make a plan with regards to country = "NA" (Namibia) > or continent = "NA" (North America) > > But there are the vignettes. > > el > NA and "NA" are not the same: > DF <

Re: [R] combining data from different datasets

2008-10-24 Thread Dr Eberhard W Lisse
Gabor, Thank you, On 24 Oct 2008, at 17:16 , Gabor Grothendieck wrote: Here are two solutions. The first uses the R merge command and the second uses the R sqldf package. See ?merge and http://sqldf.googlecode.com Note that alter is an sql keyword so I have changed it to alt for the second e

Re: [R] combining data from different datasets

2008-10-24 Thread Gabor Grothendieck
Here are two solutions. The first uses the R merge command and the second uses the R sqldf package. See ?merge and http://sqldf.googlecode.com Note that alter is an sql keyword so I have changed it to alt for the second example: > merge(iso, rawdata)[c("alt", "sex", "country")] alter sex count

[R] combining data from different datasets

2008-10-24 Thread Dr Eberhard W Lisse
Hi, I have two tables: > iso continent code code3 codenum country 1 EU AD AND 20 Andorra, Principality of 2 AS AE ARE 784 United Arab Emirates 3 AS AF AFG 4 Afghanistan, Islamic Republic of 4