[R] Plot gamma distribution with relative frequency histogram

2014-12-04 Thread dila radi
Dear R users, I am looking to fit a gamma curve onto a histogram of the data. Consider dt1 as my data: c(203.9, 91.5, 24.5, 34.5, 164, 144, 160.5, 195, 191.5, 189, 133, 110.5, 155, 80.5, 250.5, 116, 145, 118.5, 406, 183.5, 142.5, 197, 367, 134, 153.5) I am using this code in R x-dt1

[R] Finding the Summation of Monthly Amount

2014-10-12 Thread dila radi
Hi all, Could someone help me on this? I have this kind of data set structure(list(Year = c(1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L, 1971L,

[R] to extract extreme data for specified period

2014-06-17 Thread dila radi
Dear R users, I used this codes to find the 1-day annual rainfall maximum bmFort - blockmaxxer(Fort, blocks = Fort$year, which=Prec);bmFort and the output is given below: structure(list(obs = c(119, 507, 994, 1398, 1583, 1917), tobs = c(119, 142, 264, 303, 123, 91), month = c(4, 5, 9, 10, 5,

[R] Replacing NA's in the data set

2014-04-29 Thread dila radi
Hi all, I have this data set, dput(Ts) structure(list(V1 = c(3, 17, 29, 12, 4.5, 1, 0.5, 0, 0, 0, 1.2, 1.8, 1.5, 0.5, 0, 47.7, 0.3, 0, 2, 0, 5.5, 8, 27.5, 69, 29, 24.5, 57.5, 40, 1, 14.5, 0, 0, 0, 0, 0, 0, 1.5, 2, 0, 0, 0, 0, 7, 29.5, 77, 11.5, 33, 38, 36, 8, 28, 11, 11, 0, 17, 0, 51, 0.5, 5,

[R] creating multiple line graphs

2014-04-14 Thread dila radi
Hi all, I tried to draw multiple line graphs, and this is my data: structure(list(X = structure(c(3L, 1L, 2L), .Label = c(10%, 20%, 5%), class = factor), NRM = c(0.993112, 0.9757191, 0.9709928), AAM = c(0.9928504, 0.9764055, 0.9702813), IDW = c(0.9923301, 0.9737133, 0.9640287), CCM =

[R] Replacement Value

2014-04-07 Thread dila radi
Hi all, I have problem on how to replace value. I have this kind of data set: structure(list(A = c(0, 12.6, 10.1, 8.1, 14.4, 0, 0, 0, 0, 0.5, 12.9, 25.9, 49, 0, 0, 0, 0, 0, 7.8), B = c(0, 0, 9.1, 9.3, 1.5, 1, 1, 1, 1.7, 6, 0, 0, 0, 1.7, 3.8, 0, 0, 0, 1), C = c(1, 1, 9.10004, 9.2,

Re: [R] Deletion of rows

2014-03-14 Thread dila radi
to remove. Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of dila radi Sent: Tuesday, March 11, 2014 6:04 AM To: r-help@r-project.org Subject: [R] Deletion of rows Hi, I would like to ask about the deletion

[R] Deletion of rows

2014-03-11 Thread dila radi
Hi, I would like to ask about the deletion of rows in the data. Assuming I have this kind of data set, which you can refer through the attachment. As in the attachment, I have 31 days for each month which is I want to delete some of the rows according to the real days per month. For example:

[R] Data Rearrangement

2014-02-27 Thread dila radi
Hi all, I know this is easy, but I really do not have any idea to solve it. I have this kind of data set: dat - read.table(text=Day Year Jan Feb Mar Apr 1 2012 0 2.5 0.5 2 2 2012 0 6.5 0 29 3 2012 0 9.5 0 0 4 2012 0 0 8 0.5 5 2012 0 5 0.5 110.5 6 2012 0 4 3.5 22 7 2012 11 0

[R] (no subject)

2014-02-24 Thread dila radi
Hi all, I have a data set in this form: Year: 2012 Day Jan Feb Mar Apr 1 0 2.5 0.5 2 2 0 6.5 0 29 3 0 9.5 0 0 4 0 0 8 0.5 5 0 5 0.5 110.5 6 0 4 3.5 22 7 11 0 12.5 3.5 8 0 5 8 36.5 I want to rearrange the data in this form: DateAmount 1/1/2012 0 2/1/2012

[R] Replace NA's with value in the next row

2013-11-13 Thread dila radi
Hi all, I have a data set which treat missing value as NA and now I need to replace all these NA's by using number in the same row but different column. Here is the part of my data: V1 V2 V3 V4 V5 V6 V7 0 0 0 1.2 0 0 0.259 0 0 12.8 0 23.7 0 8.495 6 0 81.7 0.2 0 20 19.937 0 1.5 60.9 0 0 15.5

[R] How to replace NA's data with some value

2013-11-12 Thread dila radi
Hi all, I have a data set with missing value. I would like to estimate those missing value by using normal ratio method. Below is part of my data: AS BL Serdang Jhr Phg Target station 00.012.8 0.0 23.7 0.0 60.081.7 0.2 0.0 NA 0

[R] how to introduce missing data for complete data

2013-11-10 Thread dila radi
Hi, Im new R users. In my research I use rainfall data and Im interested in estimating missing data. I would like to use Normal Ratio Method to estimate missing data. My problem is, how do I introduce missing data randomly within my complete set of data? Stn ID Year Mth Day Amount