[R] Replace NaN with zero

2008-11-25 Thread Spilak,Jacqueline [Edm]
I need help with replacing NaN with zero (the value '0') in my dataset. The reason is that I can't get it to graph because of the NaN in the dataset. I have tried: data[is.nan(data)] - 0 that others have suggested in the help archives but this does nothing so I am not sure what I am doing wrong.

[R] Two graphs on one using barchart

2008-04-28 Thread Spilak,Jacqueline [Edm]
Hi R users Here is an example of my data (only a small part) Year Season A_Time R_Time O_Time All_Time AandR_Time A_number R_numberO_numberAandR_numberall_number 1999 Winter 9.590741 35.312963 42.759524 23.228431 18.164815 189

[R] (no subject)

2008-04-28 Thread Spilak,Jacqueline [Edm]
Hi R users Here is an example of my data (only a small part) Year Season A_Time R_Time O_Time All_Time AandR_Time A_number R_numberO_numberAandR_numberall_number 1999 Winter 9.590741 35.312963 42.759524 23.228431 18.164815 18 9

Re: [R] adding lines to a barchart

2007-12-21 Thread Spilak,Jacqueline [Edm]
with a legend for it at the side, is this possible? And my other question is that there seems to be a gap between where the bars start and the x-axis, it is kinda funny looking so is there anyway to change this? Thanks for all the help On 12/19/07, Spilak,Jacqueline [Edm] [EMAIL PROTECTED] wrote: Hi

[R] adding lines to a barchart

2007-12-19 Thread Spilak,Jacqueline [Edm]
Hi all I can't find what I am looking for so I am asking here. I have a dataset that looks something like this. Year season percent_below 2000 Winter 6.9179870 2000 Spring 1.6829436 2000 Summer 1.8463501 2000 Autumn 3.8184993 2001 Winter 2.8832806 2001

[R] Subset any value and blanks

2007-09-19 Thread Spilak,Jacqueline [Edm]
Hi everyone I need help with subseting a data set. In my dataset there is a specific row that will either have a value or be blank. I would like to subset (or split) the dataset into one dataset with the row that has the value and another dataset that has just the blanks. Now the thing is that