[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

[R] Assign name to a name

2007-06-29 Thread Spilak,Jacqueline [Edm]
I would like to know how I can assign a name to a name. I have a dataset that has different years in it. I am writing scripts using R and I would like to give a month a generic name and then use the generic name to do different analysis. The reason for the generic name would be so that I only

[R] Barchart legend position

2007-06-22 Thread Spilak,Jacqueline [Edm]
I am using barchart to make charts for some data with a lot more functions and labels and such in the command. barchart(Freq ~ factor(HH), data = dataset1, group= year) So I have my data grouped by year and I get a legend at the top of graph, which is great cause I need the legend for the

[R] Replace number with month

2007-06-20 Thread Spilak,Jacqueline [Edm]
Hi all I have a multiple datasets that look like this MM Freq 1 30 2 35 3 54 4 33 5 27 6 13 7 25 8 29 9 40 10 32 11 36 12 23 I am plotting this using barchart (there is probably something better but it gives me the results I

[R] How to group a count

2007-05-15 Thread Spilak,Jacqueline [Edm]
Hello R users I have a dataset that has different types of records with different dates and times pertaining to each. I would like to have a bar graph of a count of the types(ie. The number of types) of recods by hour grouped by year. So the count of the types would be the y axis, the hour on

Re: [R] Barplot by two variables

2007-05-15 Thread Spilak,Jacqueline [Edm]
[mailto:[EMAIL PROTECTED] Sent: May 10, 2007 4:58 PM To: Spilak,Jacqueline [Edm] Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Barplot by two variables On 5/10/07, Spilak,Jacqueline [Edm] [EMAIL PROTECTED] wrote: Hi all I have a bit of a problem. I want to make a barplot of some data. My data

Re: [R] How to group a count

2007-05-15 Thread Spilak,Jacqueline [Edm]
,2002,01,01,09,17,A -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: May 15, 2007 3:46 PM To: Spilak,Jacqueline [Edm] Cc: r-help@stat.math.ethz.ch Subject: Re: [R] How to group a count On 5/15/07, Spilak,Jacqueline [Edm] [EMAIL PROTECTED] wrote: Hello R users I have

[R] Barplot by two variables

2007-05-10 Thread Spilak,Jacqueline [Edm]
Hi all I have a bit of a problem. I want to make a barplot of some data. My data is of a score that is separated by year and by a limit (above 3 and below 3 to calculate the score). YearLimit HSS 1999ALT 0.675 1999VFR 0.521 2000ALT 0.264 2000VFR 0.295 I

[R] Sum of specific column

2007-04-25 Thread Spilak,Jacqueline [Edm]
I have a data set that I have imported (not sure if that makes a difference) and I would like to calculate the sum of only specific columns. I have tried colSums(dataset, by=list(dataset$col5), dims=1) and I get an error of unused arguments I have also tried aggregate(dataset,

[R] Looping through series of names

2007-04-11 Thread Spilak,Jacqueline [Edm]
Hi I am very new to R and have not able to find the answer to my question in the manual or any other post. I have a dataset that has various different sites names with data relating to each site. The data is in one dataset. I want to loop through the different site names and perform my test on